Loaders: Rename Path() to GetPath().

Path is going to be a struct name.
This commit is contained in:
Henrik Rydgård authored and Unknown W. Brackets committed 2021-05-09 17:10:14 -07:00
1 parent 96c109e6ce
commit 9480b6672b
15 files changed
+32 -32

No files matched your search

+2 -2
View File
@@ -133,7 +133,7 @@ std::vector<std::string> DiskCachingFileLoader::GetCachedPathsInUse() {
void DiskCachingFileLoader::InitCache() {
std::lock_guard<std::mutex> guard(cachesMutex_);
std::string path = ProxiedFileLoader::Path();
std::string path = ProxiedFileLoader::GetPath();
auto &entry = caches_[path];
if (!entry) {
entry = new DiskCachingFileLoaderCache(path, filesize_);
@@ -149,7 +149,7 @@ void DiskCachingFileLoader::ShutdownCache() {
if (cache_->Release()) {
// If it ran out of counts, delete it.
delete cache_;
caches_.erase(ProxiedFileLoader::Path());
caches_.erase(ProxiedFileLoader::GetPath());
}
cache_ = nullptr;
}