diff options
author | artemp <artem@mapnik.org> | 2014-11-19 16:31:16 +0100 |
---|---|---|
committer | artemp <artem@mapnik.org> | 2014-11-19 16:31:16 +0100 |
commit | 04cea00d5dba694387e308215227f20eac0668c7 (patch) | |
tree | decf39ef87cd9a6c35c6568a21a9dfaeb0d8932e /platform/default/image.cpp | |
parent | f7e813238da85270a974e4a045242af2dda0fda0 (diff) | |
download | qtlocation-mapboxgl-04cea00d5dba694387e308215227f20eac0668c7.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 9a76ef33f6..8d0374c64c 100644 --- a/platform/default/image.cpp +++ b/platform/default/image.cpp @@ -76,7 +76,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]()); |