summaryrefslogtreecommitdiff
path: root/test/src/mbgl/test/fake_file_source.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-26 17:47:03 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-26 22:31:59 +0200
commitba4f5efa09b985f0bab99a53dc9ac27dd6fb94ea (patch)
tree48354dd1d9d2d639aa6374bf835c98f13c9ef2eb /test/src/mbgl/test/fake_file_source.hpp
parent25d8eab9737111ab1f2af369125705f241543e51 (diff)
downloadqtlocation-mapboxgl-ba4f5efa09b985f0bab99a53dc9ac27dd6fb94ea.tar.gz
[core] OnlineFileSource is never accessed directly
Diffstat (limited to 'test/src/mbgl/test/fake_file_source.hpp')
-rw-r--r--test/src/mbgl/test/fake_file_source.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/mbgl/test/fake_file_source.hpp b/test/src/mbgl/test/fake_file_source.hpp
index 1faf4b7a18..7c5adbfff4 100644
--- a/test/src/mbgl/test/fake_file_source.hpp
+++ b/test/src/mbgl/test/fake_file_source.hpp
@@ -75,10 +75,10 @@ public:
}
mapbox::base::Value getProperty(const std::string& property) const override {
- return onlineFs.getProperty(property);
+ return onlineFs->getProperty(property);
}
- OnlineFileSource onlineFs;
+ std::unique_ptr<FileSource> onlineFs = std::make_unique<OnlineFileSource>();
};
} // namespace mbgl