summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorartemp <artem@mapnik.org>2014-10-29 18:12:11 -0400
committerartemp <artem@mapnik.org>2014-10-29 18:12:11 -0400
commit9ff0d009124a4b114c0199cc5ef03a87759103a1 (patch)
treecb26b53f028c23ba293fb6cb5d07e96f50008b64 /include
parent6622a07ad88c7ca2eb34db66cc46f416f7b5286f (diff)
downloadqtlocation-mapboxgl-9ff0d009124a4b114c0199cc5ef03a87759103a1.tar.gz
store uv::loop as unique_ptr
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/map/map.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 382b6745d2..6aa86fcc85 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -134,7 +134,6 @@ public:
inline SpriteAtlas & getSpriteAtlas() { return spriteAtlas; }
util::ptr<Sprite> getSprite();
inline util::ptr<Texturepool> getTexturepool() { return texturepool; }
- inline util::ptr<uv::loop> getLoop() { return loop; }
uv::worker &getWorker();
inline timestamp getAnimationTime() const { return animationTime; }
inline timestamp getTime() const { return animationTime; }
@@ -163,7 +162,7 @@ private:
private:
bool async = false;
- util::ptr<uv::loop> loop;
+ std::unique_ptr<uv::loop> loop;
std::unique_ptr<uv::worker> workers;
std::unique_ptr<uv::thread> thread;
std::unique_ptr<uv_async_t> async_terminate;