mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
PSF: Avoid redundent string copies in psf::array/string/get_string (#8707)
This commit is contained in:
parent
b487c09d34
commit
edc09e22b4
6 changed files with 33 additions and 31 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue