From: Elena Mamontova Date: Thu, 18 Feb 2016 08:53:38 +0000 (+0200) Subject: Ticket 26. The 'moduleName' variable is defined and parameter 'moduleName' added X-Git-Tag: 2.409~174^2~1^2~37 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/9b30fa9ff418407450a497d998039f648bf72128 Ticket 26. The 'moduleName' variable is defined and parameter 'moduleName' added in the new PLUGIN_RUNNER() in the constructor. --- diff --git a/projects/stargazer/plugin_mgr.cpp b/projects/stargazer/plugin_mgr.cpp index 216e3739..d3430c89 100644 --- a/projects/stargazer/plugin_mgr.cpp +++ b/projects/stargazer/plugin_mgr.cpp @@ -60,11 +60,12 @@ PluginManager::PluginManager(const SETTINGS_IMPL& settings, for (size_t i = 0; i < modSettings.size(); i++) { std::string modulePath = basePath + "/mod_" + modSettings[i].moduleName + ".so"; + std::string moduleName = modSettings[i].moduleName; printfd(__FILE__, "Module: %s\n", modulePath.c_str()); try { m_modules.push_back( - new PLUGIN_RUNNER(modulePath, modSettings[i], admins, tariffs, + new PLUGIN_RUNNER(modulePath, moduleName, modSettings[i], admins, tariffs, users, services, corporations, traffcounter, store, settings) );