use std::make_shared

This commit is contained in:
artemp 2015-01-07 12:20:19 +01:00
parent c2ea32feac
commit f6651ac74d

View File

@ -228,7 +228,7 @@ std::shared_ptr<image_32> from_cairo(PycairoSurface* py_surface)
// ============ image any
std::shared_ptr<image> read_from_file_impl(std::string const& filename)
{
std::shared_ptr<image> img(new image);
std::shared_ptr<image> img = std::make_shared<image>();
std::unique_ptr<image_reader> reader(get_image_reader(filename));
if (reader)
{