From d71b913d3696c4a5c070c0ead5c134c29e244743 Mon Sep 17 00:00:00 2001 From: Sergey BELASH Date: Wed, 27 Aug 2014 10:46:53 +0400 Subject: [PATCH] Issue #102: Crush on start operation fixed --- src/ModelAPI/ModelAPI_PluginManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ModelAPI/ModelAPI_PluginManager.cpp b/src/ModelAPI/ModelAPI_PluginManager.cpp index 72deaba2c..16999630b 100644 --- a/src/ModelAPI/ModelAPI_PluginManager.cpp +++ b/src/ModelAPI/ModelAPI_PluginManager.cpp @@ -57,17 +57,17 @@ boost::shared_ptr ModelAPI_PluginManager::get() return MY_MANAGER; } -const ModelAPI_EventCreator* MY_CREATOR = 0; ///< instance of the events creator, one pre application +const ModelAPI_EventCreator* MY_API_CREATOR = 0; ///< instance of the events creator, one pre application const ModelAPI_EventCreator* ModelAPI_EventCreator::get() { - if (!MY_CREATOR) { // import Model library that implements this interface of ModelAPI + if (!MY_API_CREATOR) { // import Model library that implements this interface of ModelAPI Config_ModuleReader::loadLibrary("Model"); } - return MY_CREATOR; + return MY_API_CREATOR; } void ModelAPI_EventCreator::set(const ModelAPI_EventCreator* theCreator) { - MY_CREATOR = theCreator; + MY_API_CREATOR = theCreator; } -- 2.39.2