Start to permeate more ownership.

This commit is contained in:
2025-08-10 17:27:52 -04:00
parent 640ccd02d3
commit 82512db44a
6 changed files with 14 additions and 13 deletions

View File

@ -692,10 +692,11 @@ void FltkPlatform::copySelection(const char *text)
Fl::copy(text, strlen(text), 0);
}
core::Imgbuf *FltkPlatform::createImgbuf (core::Imgbuf::Type type,
int width, int height, double gamma)
std::unique_ptr< core::Imgbuf >
FltkPlatform::createImgbuf( core::Imgbuf::Type type,
int width, int height, double gamma)
{
return new FltkImgbuf (type, width, height, gamma);
return std::make_unique< FltkImgbuf >( type, width, height, gamma );
}
core::ui::ResourceFactory *FltkPlatform::getResourceFactory ()