]> git.stg.codes - stg.git/commitdiff
Ticket 26. The 'name' parameter and 'pluginName' variable initialization added in the
authorElena Mamontova <helenh463@gmail.com>
Thu, 18 Feb 2016 08:17:43 +0000 (10:17 +0200)
committerElena Mamontova <helenh463@gmail.com>
Thu, 18 Feb 2016 08:17:43 +0000 (10:17 +0200)
constructor.

projects/stargazer/plugin_runner.cpp

index eaf51058ccedc97a0999c8fee211142632edc8c1..c758fe8d8827593a88604edca3638a082ec9460e 100644 (file)
@@ -28,6 +28,7 @@
 
 //-----------------------------------------------------------------------------
 PLUGIN_RUNNER::PLUGIN_RUNNER(const std::string & fileName,
 
 //-----------------------------------------------------------------------------
 PLUGIN_RUNNER::PLUGIN_RUNNER(const std::string & fileName,
+                             const std::string & name,
                              const MODULE_SETTINGS & ms,
                              ADMINS & admins,
                              TARIFFS & tariffs,
                              const MODULE_SETTINGS & ms,
                              ADMINS & admins,
                              TARIFFS & tariffs,
@@ -38,6 +39,7 @@ PLUGIN_RUNNER::PLUGIN_RUNNER(const std::string & fileName,
                              STORE & store,
                              const SETTINGS & settings)
     : pluginFileName(fileName),
                              STORE & store,
                              const SETTINGS & settings)
     : pluginFileName(fileName),
+      pluginName(name),
       libHandle(NULL),
       m_plugin(Load(ms, admins, tariffs, users, services, corporations,
                     traffcounter, store, settings))
       libHandle(NULL),
       m_plugin(Load(ms, admins, tariffs, users, services, corporations,
                     traffcounter, store, settings))