diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2020-04-27 15:24:22 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2020-05-26 20:35:03 +0300 |
commit | 1d892b1feef4a4d15711d4596f36e6f558afae26 (patch) | |
tree | 270d5cd24e287bc5e3b838d0aa590a62d99ca850 /src/mbgl/annotation/annotation_source.hpp | |
parent | 95c80287d280883328c614bbf0c8013d71be37d5 (diff) | |
download | qtlocation-mapboxgl-1d892b1feef4a4d15711d4596f36e6f558afae26.tar.gz |
remove SourceType usage and source downcasts
Diffstat (limited to 'src/mbgl/annotation/annotation_source.hpp')
-rw-r--r-- | src/mbgl/annotation/annotation_source.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/annotation/annotation_source.hpp b/src/mbgl/annotation/annotation_source.hpp index de432202a0..7503c4b066 100644 --- a/src/mbgl/annotation/annotation_source.hpp +++ b/src/mbgl/annotation/annotation_source.hpp @@ -18,10 +18,8 @@ protected: private: void loadDescription(FileSource&) final; bool supportsLayerType(const mbgl::style::LayerTypeInfo*) const override; - mapbox::base::WeakPtr<Source> makeWeakPtr() override { - return weakFactory.makeWeakPtr(); - } - mapbox::base::WeakPtrFactory<Source> weakFactory {this}; + mapbox::base::WeakPtr<Source> makeWeakPtr() override { return weakFactory.makeWeakPtr(); } + mapbox::base::WeakPtrFactory<Source> weakFactory{this}; }; class AnnotationSource::Impl : public style::Source::Impl { @@ -29,6 +27,8 @@ public: Impl(); optional<std::string> getAttribution() const final; + + DECLARE_SOURCE_TYPE_INFO; }; } // namespace mbgl |