mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
U++: Fixes for C++23 in Linux
This commit is contained in:
parent
8016c484df
commit
ee48e90682
2 changed files with 3 additions and 3 deletions
|
|
@ -1223,7 +1223,7 @@ String LoadFile(const char *filename) {
|
|||
if(len >= 0)
|
||||
s.SetCount(n + len);
|
||||
close(fd);
|
||||
return s;
|
||||
return String(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue