Commit cd8ef2a9 authored by Tristan Matthews's avatar Tristan Matthews

* #9572: manager: pass config filename by const reference

parent 412a0b89
......@@ -82,7 +82,7 @@ int main(int argc, char **argv)
return 1;
try {
Manager::instance().init();
Manager::instance().init("");
} catch (const std::exception &e) {
std::cerr << e.what() << std::endl;
return 1;
......
......@@ -90,7 +90,7 @@ ManagerImpl::ManagerImpl() :
ManagerImpl::~ManagerImpl()
{}
void ManagerImpl::init(std::string config_file)
void ManagerImpl::init(const std::string &config_file)
{
path_ = config_file.empty() ? createConfigFile() : config_file;
DEBUG("Manager: configuration file path: %s", path_.c_str());
......
......@@ -129,7 +129,7 @@ class ManagerImpl {
* Initialisation of thread (sound) and map.
* Init a new VoIPLink, audio codec and audio driver
*/
void init(std::string config_file = "");
void init(const std::string &config_file);
/**
* Terminate all thread (sound, link) and unload AccountMap
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment