mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-16 17:25:13 +00:00
Avoid unneeded string copy
Found by clang-tidy 10.
This commit is contained in:
parent
fe2b269b6e
commit
56141557dc
@ -607,7 +607,7 @@ bool StatCache::DelStat(const char* key, bool lock_already_held)
|
|||||||
bool StatCache::GetSymlink(const string& key, string& value)
|
bool StatCache::GetSymlink(const string& key, string& value)
|
||||||
{
|
{
|
||||||
bool is_delete_cache = false;
|
bool is_delete_cache = false;
|
||||||
string strpath = key;
|
const string& strpath = key;
|
||||||
|
|
||||||
AutoLock lock(&StatCache::stat_cache_lock);
|
AutoLock lock(&StatCache::stat_cache_lock);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user