summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-11-25 18:09:38 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-11-26 15:13:14 -0800
commit167097936acbc77fe91bbf73ee59f447f8a10b9a (patch)
treeb1efda2081e5e0b8f2e77d8b17dcd0580dc5e533 /include
parent41e90b4150ba8302c0c6f9bec0f53059483fea9e (diff)
downloadqtlocation-mapboxgl-167097936acbc77fe91bbf73ee59f447f8a10b9a.tar.gz
Store SourceInfo as direct member
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/style_source.hpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/mbgl/style/style_source.hpp b/include/mbgl/style/style_source.hpp
index 86473079cf..8c7d028880 100644
--- a/include/mbgl/style/style_source.hpp
+++ b/include/mbgl/style/style_source.hpp
@@ -29,16 +29,11 @@ public:
};
-class StyleSource : public std::enable_shared_from_this<StyleSource> {
+class StyleSource : private util::noncopyable {
public:
- util::ptr<SourceInfo> info;
-
+ SourceInfo info;
bool enabled = false;
util::ptr<Source> source;
-
- StyleSource(const util::ptr<SourceInfo> &info_)
- : info(info_)
- {}
};
}