[core] OnlineFileSource is never accessed directly

This commit is contained in:
Mikhail Pozdnyakov
2020-02-26 17:47:03 +02:00
parent 25d8eab973
commit ba4f5efa09
10 changed files with 143 additions and 153 deletions

View File

@@ -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