mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 11:01:01 +02:00
config: Pass strings by const reference where applicable
In a few cases, the strings aren't ever directly modified, so they can be passed by reference to eliminate a few trivial copies.
This commit is contained in:
1 parent
5cec8ddca0
commit
525d50f07e
4 files changed
+8
-8
No files matched your search
+1
-1
@@ -83,7 +83,7 @@ namespace FEXCore::Config {
|
||||
return ConfigFile;
|
||||
}
|
||||
|
||||
std::string GetApplicationConfig(std::string &Filename, bool Global) {
|
||||
std::string GetApplicationConfig(const std::string &Filename, bool Global) {
|
||||
std::string ConfigFile = GetConfigDirectory(Global);
|
||||
if (!Global &&
|
||||
!std::filesystem::exists(ConfigFile) &&
|
||||
|
||||
Reference in new issue
Block a user