summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation/annotation_source.hpp
diff options
context:
space:
mode:
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