diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-11-26 13:48:48 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-11-26 15:13:14 -0800 |
commit | fdc988a4a01018231044208b7e36fdcac80eea9a (patch) | |
tree | bf1fa869730b1de8804b37847364997b311b7971 /include | |
parent | 80df07a5da3c895568bc1f5407bddfcccac4c4f8 (diff) | |
download | qtlocation-mapboxgl-fdc988a4a01018231044208b7e36fdcac80eea9a.tar.gz |
Use unique_ptr
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/geometry/glyph_atlas.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/mbgl/geometry/glyph_atlas.hpp b/include/mbgl/geometry/glyph_atlas.hpp index 639c6cc511..7b3c223fe5 100644 --- a/include/mbgl/geometry/glyph_atlas.hpp +++ b/include/mbgl/geometry/glyph_atlas.hpp @@ -28,8 +28,6 @@ private: const SDFGlyph& glyph); public: GlyphAtlas(uint16_t width, uint16_t height); - ~GlyphAtlas(); - Rect<uint16_t> addGlyph(uint64_t tile_id, const std::string& face_name, const SDFGlyph& glyph); @@ -46,7 +44,7 @@ private: std::mutex mtx; BinPack<uint16_t> bin; std::map<std::string, std::map<uint32_t, GlyphValue>> index; - char *const data = nullptr; + std::unique_ptr<char[]> data; std::atomic<bool> dirty; uint32_t texture = 0; }; |