From fd40bde61207c47710dba2d1587d90e505ed6837 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 28 Aug 2014 13:40:17 -0700 Subject: [PATCH] Make Glyph and Sprite Atlases noncopyable --- include/mbgl/geometry/glyph_atlas.hpp | 3 ++- include/mbgl/geometry/sprite_atlas.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/mbgl/geometry/glyph_atlas.hpp b/include/mbgl/geometry/glyph_atlas.hpp index 07011d324..8df9fd0f7 100644 --- a/include/mbgl/geometry/glyph_atlas.hpp +++ b/include/mbgl/geometry/glyph_atlas.hpp @@ -3,6 +3,7 @@ #include #include +#include #include #include @@ -12,7 +13,7 @@ namespace mbgl { -class GlyphAtlas { +class GlyphAtlas : public util::noncopyable { public: private: diff --git a/include/mbgl/geometry/sprite_atlas.hpp b/include/mbgl/geometry/sprite_atlas.hpp index c30499a53..36f0f338e 100644 --- a/include/mbgl/geometry/sprite_atlas.hpp +++ b/include/mbgl/geometry/sprite_atlas.hpp @@ -2,6 +2,7 @@ #define MBGL_GEOMETRY_SPRITE_ATLAS #include +#include #include #include @@ -14,7 +15,7 @@ namespace mbgl { class Sprite; class SpritePosition; -class SpriteAtlas { +class SpriteAtlas : public util::noncopyable { public: typedef uint16_t dimension;