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:
Lioncash committed 2021-06-04 12:46:34 -04:00
1 parent 5cec8ddca0
commit 525d50f07e
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -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) &&