const ref please!

master
Ansariel 2023-04-04 13:16:14 +02:00
parent 2428f9754a
commit 25f20cfd59
2 changed files with 2 additions and 2 deletions

View File

@ -534,7 +534,7 @@ void LLDiskCache::removeOldVFSFiles()
}
}
uintmax_t LLDiskCache::dirFileSize(const std::string dir)
uintmax_t LLDiskCache::dirFileSize(const std::string& dir)
{
uintmax_t total_file_size = 0;

View File

@ -164,7 +164,7 @@ class LLDiskCache :
* directory. Primarily used here to determine the directory size
* before and after the cache purge
*/
uintmax_t dirFileSize(const std::string dir);
uintmax_t dirFileSize(const std::string& dir);
/**
* Utility function to convert an LLAssetType enum into a