From 73c62ae6affac2f33430d1d1585839fafc5efdd8 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Wed, 13 Apr 2016 09:55:30 +0300 Subject: [PATCH 1/1] 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. --- projects/stargazer/plugin_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.44.2