From: Elena Mamontova Date: Wed, 13 Apr 2016 06:55:30 +0000 (+0300) Subject: Ticket 26. The std::string modulePath variable definition moved after X-Git-Tag: 2.409~174^2~1^2~3 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/73c62ae6affac2f33430d1d1585839fafc5efdd8 Ticket 26. The std::string modulePath variable definition moved after the std::string moduleName variable definition, the modSettings[i].moduleName variable replaced to moduleName when modulePath definition in the PluginManager constructor. --- diff --git a/projects/stargazer/plugin_mgr.cpp b/projects/stargazer/plugin_mgr.cpp index 8d026ee6..b127869b 100644 --- a/projects/stargazer/plugin_mgr.cpp +++ b/projects/stargazer/plugin_mgr.cpp @@ -59,8 +59,8 @@ PluginManager::PluginManager(const SETTINGS_IMPL& settings, const std::vector & modSettings(settings.GetModulesSettings()); for (size_t i = 0; i < modSettings.size(); i++) { - std::string modulePath = basePath + "/mod_" + modSettings[i].moduleName + ".so"; std::string moduleName = modSettings[i].moduleName; + std::string modulePath = basePath + "/mod_" + moduleName + ".so"; printfd(__FILE__, "Module: %s\n", modulePath.c_str()); try {