summaryrefslogtreecommitdiff
path: root/src/mbgl/annotation
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/annotation')
-rw-r--r--src/mbgl/annotation/annotation_source.cpp2
-rw-r--r--src/mbgl/annotation/annotation_source.hpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/mbgl/annotation/annotation_source.cpp b/src/mbgl/annotation/annotation_source.cpp
index 68f36f2d3a..5746081d22 100644
--- a/src/mbgl/annotation/annotation_source.cpp
+++ b/src/mbgl/annotation/annotation_source.cpp
@@ -13,7 +13,7 @@ AnnotationSource::Impl::Impl()
: Source::Impl(SourceType::Annotations, AnnotationManager::SourceID) {
}
-void AnnotationSource::loadDescription(FileSource&) {
+void AnnotationSource::loadDescription(std::shared_ptr<FileSource>) {
loaded = true;
}
diff --git a/src/mbgl/annotation/annotation_source.hpp b/src/mbgl/annotation/annotation_source.hpp
index 0728f3207e..a0e59227e4 100644
--- a/src/mbgl/annotation/annotation_source.hpp
+++ b/src/mbgl/annotation/annotation_source.hpp
@@ -3,8 +3,12 @@
#include <mbgl/style/source.hpp>
#include <mbgl/style/source_impl.hpp>
+#include <memory>
+
namespace mbgl {
+class FileSource;
+
class AnnotationSource : public style::Source {
public:
AnnotationSource();
@@ -13,7 +17,7 @@ public:
const Impl& impl() const;
private:
- void loadDescription(FileSource&) final;
+ void loadDescription(std::shared_ptr<FileSource>) final;
Mutable<Impl> mutableImpl() const;
};