PSF: Avoid redundent string copies in psf::array/string/get_string (#8707)

This commit is contained in:
Eladash 2020-08-22 01:55:17 +03:00 committed by GitHub
parent b487c09d34
commit edc09e22b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 31 deletions

View file

@ -265,7 +265,7 @@ namespace psf
}
}
std::string get_string(const registry& psf, const std::string& key, const std::string& def)
std::string_view get_string(const registry& psf, const std::string& key, std::string_view def)
{
const auto found = psf.find(key);