Salome HOME
Small corrections to remove compilation warnings
authorsbh <sergey.belash@opencascade.com>
Tue, 25 Nov 2014 11:01:47 +0000 (14:01 +0300)
committersbh <sergey.belash@opencascade.com>
Tue, 25 Nov 2014 11:01:47 +0000 (14:01 +0300)
src/Config/Config_ModuleReader.cpp
src/Events/Events_Loop.cpp

index 83b16f27d5afe166f58d15d66e602cb4a6b8a494..57f220e4c655e26222f9ca5136a44b234f92751f 100644 (file)
@@ -96,16 +96,16 @@ std::string Config_ModuleReader::addPlugin(const std::string& aPluginLibrary,
                                            const std::string& aPluginScript,
                                            const std::string& aPluginConf)
 {
-  PluginType aType = PluginType::Binary;
+  PluginType aType = Config_ModuleReader::Binary;
   std::string aPluginName;
   if (!aPluginLibrary.empty()) {
     aPluginName = aPluginLibrary;
     if (aPluginConf.empty()) {
-      aType = PluginType::Intrenal;
+      aType = Config_ModuleReader::Intrenal;
     }
   } else if (!aPluginScript.empty()) {
     aPluginName = aPluginScript;
-    aType = PluginType::Python;
+    aType = Config_ModuleReader::Python;
   }
   if(!aPluginName.empty()) {
     myPluginTypes[aPluginName] = aType;
@@ -116,16 +116,16 @@ std::string Config_ModuleReader::addPlugin(const std::string& aPluginLibrary,
 
 void Config_ModuleReader::loadPlugin(const std::string thePluginName)
 {
-  PluginType aType = PluginType::Binary;
+  PluginType aType = Config_ModuleReader::Binary;
   if(myPluginTypes.find(thePluginName) != myPluginTypes.end()) {
     aType = myPluginTypes.at(thePluginName);
   }
   switch (aType) {
-    case PluginType::Python:
+    case Config_ModuleReader::Python:
       loadScript(thePluginName);
       break;
-    case PluginType::Binary:
-    case PluginType::Intrenal:
+    case Config_ModuleReader::Binary:
+    case Config_ModuleReader::Intrenal:
     default:
       loadLibrary(thePluginName);
       break;
index f9ccd81eca3e7857cf3b5849e261fa93d823db3c..d70b9764f1b05603e600cba3d751953e0df5afec 100644 (file)
@@ -123,8 +123,9 @@ void Events_Loop::flush(const Events_ID& theID)
     myGroups.erase(aMyGroup);
     send(aGroup, false);
     std::set<char*>::iterator anIt = myFlushed.find(theID.myID);
-    if (anIt != myFlushed.end())
-      myFlushed.erase(myFlushed.find(theID.myID));
+    if (anIt != myFlushed.end()) {
+      myFlushed.erase(anIt);
+    }
   }
 }