Start to permeate more ownership.
This commit is contained in:
@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user