diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-05-10 11:48:22 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-05-10 14:50:56 +0200 |
commit | 7332ae00735a7cb1a0a4528d48e5956aa593b8b8 (patch) | |
tree | 5d680f5388c2019834975a22cd941d0cefb59a31 /src/mbgl/tile/tile.hpp | |
parent | ec70125e41e4e9db5f1d0941c0129d80f5792896 (diff) | |
download | qtlocation-mapboxgl-7332ae00735a7cb1a0a4528d48e5956aa593b8b8.tar.gz |
[core] retain tiles differently and remove old TileID class
Diffstat (limited to 'src/mbgl/tile/tile.hpp')
-rw-r--r-- | src/mbgl/tile/tile.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mbgl/tile/tile.hpp b/src/mbgl/tile/tile.hpp index 5cb23f58f3..78df995157 100644 --- a/src/mbgl/tile/tile.hpp +++ b/src/mbgl/tile/tile.hpp @@ -3,7 +3,6 @@ #include <mbgl/tile/tile_id.hpp> #include <mbgl/util/mat4.hpp> -#include <mbgl/util/noncopyable.hpp> #include <mbgl/util/ptr.hpp> #include <mbgl/util/clip_id.hpp> @@ -12,15 +11,20 @@ namespace mbgl { class TileData; struct box; -class Tile : private util::noncopyable { +class Tile { public: - Tile(const UnwrappedTileID& id_) : id(id_) { + Tile(const UnwrappedTileID& id_, TileData& data_) : id(id_), data(data_) { } + Tile(const Tile&) = delete; + Tile(Tile&&) = default; + Tile& operator=(const Tile&) = delete; + Tile& operator=(Tile&&) = default; + const UnwrappedTileID id; + TileData& data; ClipID clip; mat4 matrix; - util::ptr<TileData> data; }; } // namespace mbgl |