U++: Fixes for C++23 in Linux

This commit is contained in:
Mirek Fidler 2024-09-19 09:28:49 +02:00
parent 8016c484df
commit ee48e90682
2 changed files with 3 additions and 3 deletions

View file

@ -1223,7 +1223,7 @@ String LoadFile(const char *filename) {
if(len >= 0)
s.SetCount(n + len);
close(fd);
return s;
return String(s);
}
}
}

View file

@ -168,14 +168,14 @@ ImageDraw::operator Image() const
ImageBuffer img(isz);
FetchStraight(img);
Premultiply(img);
return img;
return Image(img);
}
Image ImageDraw::GetStraight() const
{
ImageBuffer img(isz);
FetchStraight(img);
return img;
return Image(img);
}
void ImageDraw::Init(Size sz)