Avoid unneeded string copy

Found by clang-tidy 10.
This commit is contained in:
Andrew Gaul 2020-03-28 08:49:49 +09:00
parent fe2b269b6e
commit 56141557dc

View File

@ -607,7 +607,7 @@ bool StatCache::DelStat(const char* key, bool lock_already_held)
bool StatCache::GetSymlink(const string& key, string& value)
{
bool is_delete_cache = false;
string strpath = key;
const string& strpath = key;
AutoLock lock(&StatCache::stat_cache_lock);