diff options
author | artemp <artem@mapnik.org> | 2014-11-19 16:31:16 +0100 |
---|---|---|
committer | Leith Bade <leith@mapbox.com> | 2014-11-28 00:15:04 +1100 |
commit | 8c524e1ac66f8d17f22a6d03fe42d47b66bdb790 (patch) | |
tree | f37ce741dcee93f232e8efad73762b18dfae837e /platform/default/image.cpp | |
parent | a2a303a1d1cbe98fe7ea708b2a652ea933c46ac7 (diff) | |
download | qtlocation-mapboxgl-8c524e1ac66f8d17f22a6d03fe42d47b66bdb790.tar.gz |
return unique_ptr from get_image_reader
Diffstat (limited to 'platform/default/image.cpp')
-rw-r--r-- | platform/default/image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/default/image.cpp b/platform/default/image.cpp index 5922d6033f..ca8b103486 100644 --- a/platform/default/image.cpp +++ b/platform/default/image.cpp @@ -77,7 +77,7 @@ Image::Image(std::string const& data) { try { - std::unique_ptr<image_reader> reader(get_image_reader(data.c_str(), data.size())); + auto reader = get_image_reader(data.c_str(), data.size()); width = reader->width(); height = reader->height(); img = ::std::unique_ptr<char[]>(new char[width * height * 4]()); |