utils: Pass fileName by value in GetModuleConfigPath()

Lots of `const char *` values, preventing usage of passing by reference
This commit is contained in:
tt2468 2024-04-22 22:29:21 -07:00
parent 2c884ca690
commit 4410e30684
2 changed files with 2 additions and 2 deletions

View File

@ -227,7 +227,7 @@ namespace Utils {
namespace Obs {
namespace StringHelper {
std::string GetObsVersion();
std::string GetModuleConfigPath(std::string &fileName);
std::string GetModuleConfigPath(std::string fileName);
std::string GetCurrentSceneCollection();
std::string GetCurrentProfile();
std::string GetCurrentProfilePath();

View File

@ -40,7 +40,7 @@ std::string Utils::Obs::StringHelper::GetObsVersion()
return combined.toStdString();
}
std::string Utils::Obs::StringHelper::GetModuleConfigPath(std::string &fileName)
std::string Utils::Obs::StringHelper::GetModuleConfigPath(std::string fileName)
{
BPtr<char> configPath = obs_module_config_path(fileName.c_str());
return std::string(configPath.Get());