[core] Consolidate file source keys in the generic FileSource header

Thus we do not need to include specific headers to use `{set|get}Property`
API with key constants.
This commit is contained in:
Mikhail Pozdnyakov
2020-02-25 17:50:12 +02:00
parent 3c05bd984a
commit 7c48611f9e
7 changed files with 28 additions and 28 deletions

View File

@@ -20,7 +20,7 @@ ProxyFileSource::ProxyFileSource(std::shared_ptr<FileSource> defaultResourceLoad
assert(defaultResourceLoader);
if (offline) {
auto dbfs = FileSourceManager::get()->getFileSource(FileSourceType::Database, options);
dbfs->setProperty("read-only-mode", true);
dbfs->setProperty(READ_ONLY_MODE_KEY, true);
}
}