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:
@ -227,7 +227,7 @@ namespace Utils {
|
|||||||
namespace Obs {
|
namespace Obs {
|
||||||
namespace StringHelper {
|
namespace StringHelper {
|
||||||
std::string GetObsVersion();
|
std::string GetObsVersion();
|
||||||
std::string GetModuleConfigPath(std::string &fileName);
|
std::string GetModuleConfigPath(std::string fileName);
|
||||||
std::string GetCurrentSceneCollection();
|
std::string GetCurrentSceneCollection();
|
||||||
std::string GetCurrentProfile();
|
std::string GetCurrentProfile();
|
||||||
std::string GetCurrentProfilePath();
|
std::string GetCurrentProfilePath();
|
||||||
|
@ -40,7 +40,7 @@ std::string Utils::Obs::StringHelper::GetObsVersion()
|
|||||||
return combined.toStdString();
|
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());
|
BPtr<char> configPath = obs_module_config_path(fileName.c_str());
|
||||||
return std::string(configPath.Get());
|
return std::string(configPath.Get());
|
||||||
|
Reference in New Issue
Block a user