mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
utils: Pass fileName by value in GetModuleConfigPath()
Lots of `const char *` values, preventing usage of passing by reference
This commit is contained in:
parent
2c884ca690
commit
4410e30684
@ -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();
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user