diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/annotation/annotation_source.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mbgl/annotation/annotation_source.hpp b/src/mbgl/annotation/annotation_source.hpp index 0728f3207e..018e2136ea 100644 --- a/src/mbgl/annotation/annotation_source.hpp +++ b/src/mbgl/annotation/annotation_source.hpp @@ -5,17 +5,22 @@ namespace mbgl { -class AnnotationSource : public style::Source { +class AnnotationSource final : public style::Source { public: AnnotationSource(); class Impl; const Impl& impl() const; + mapbox::base::WeakPtr<Source> makeWeakPtr() override { + return weakFactory.makeWeakPtr(); + } + private: void loadDescription(FileSource&) final; Mutable<Impl> mutableImpl() const; + mapbox::base::WeakPtrFactory<Source> weakFactory {this}; }; class AnnotationSource::Impl : public style::Source::Impl { |