]> git.stg.codes - stg.git/commitdiff
Ticket 26. The 'moduleName' variable is defined and parameter 'moduleName' added
authorElena Mamontova <helenh463@gmail.com>
Thu, 18 Feb 2016 08:53:38 +0000 (10:53 +0200)
committerElena Mamontova <helenh463@gmail.com>
Thu, 18 Feb 2016 08:53:38 +0000 (10:53 +0200)
in the new PLUGIN_RUNNER() in the constructor.

projects/stargazer/plugin_mgr.cpp

index 216e373961dc18eb4b720303a7445e5b9a5872f6..d3430c8927d3b86f6b4671ca665af4126235301e 100644 (file)
@@ -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)
             );