Remove unneeded explicit std::string constructors (#2273)

std::string(const char*) implicitly constructs these.  The remaining call sites
requires string literals from C++14.
This commit is contained in:
Andrew Gaul
2023-08-17 22:12:28 +09:00
committed by GitHub
parent 7f30353fb9
commit b2bb12fd2c
11 changed files with 56 additions and 54 deletions

View File

@ -1035,7 +1035,7 @@ bool FdEntity::SetContentType(const char* path)
return false;
}
AutoLock auto_lock(&fdent_lock);
orgmeta["Content-Type"] = S3fsCurl::LookupMimeType(std::string(path));
orgmeta["Content-Type"] = S3fsCurl::LookupMimeType(path);
return true;
}