summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_source.hpp
diff options
context:
space:
mode:
authorIvo van Dongen <info@ivovandongen.nl>2020-04-27 15:24:22 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2020-05-26 20:35:03 +0300
commit1d892b1feef4a4d15711d4596f36e6f558afae26 (patch)
tree270d5cd24e287bc5e3b838d0aa590a62d99ca850 /src/mbgl/annotation/annotation_source.hpp
parent95c80287d280883328c614bbf0c8013d71be37d5 (diff)
downloadqtlocation-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.hpp8
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