From: Sergey BELASH Date: Wed, 27 Aug 2014 06:46:53 +0000 (+0400) Subject: Issue #102: Crush on start operation fixed X-Git-Tag: V_0.4.4~97^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d71b913d3696c4a5c070c0ead5c134c29e244743;p=modules%2Fshaper.git Issue #102: Crush on start operation fixed --- 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; }