]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #102: Crush on start operation fixed
authorSergey BELASH <belash.sergey@opencascade.com>
Wed, 27 Aug 2014 06:46:53 +0000 (10:46 +0400)
committerSergey BELASH <belash.sergey@opencascade.com>
Wed, 27 Aug 2014 06:46:53 +0000 (10:46 +0400)
src/ModelAPI/ModelAPI_PluginManager.cpp

index 72deaba2c695a78614a197126d513a1762cfbb12..16999630bbc4763a6b0cda8e377769192dea2284 100644 (file)
@@ -57,17 +57,17 @@ boost::shared_ptr<ModelAPI_PluginManager> 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;
 }