]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0021436: EDF 1810 SMESH: Create a segment and adding it to a group causes Salome...
authoreap <eap@opencascade.com>
Wed, 30 Nov 2011 14:12:02 +0000 (14:12 +0000)
committereap <eap@opencascade.com>
Wed, 30 Nov 2011 14:12:02 +0000 (14:12 +0000)
    Prevent clasing BusyLocker with BusyLocker from SMESH
+namespace
+{
 class BusyLocker

src/CAM/CAM_Application.cxx

index 7993d9f9472032c8cdc5ff35280c2098b040e97b..8aa677e3cc3d87c5be2154bc24852360392797a8 100755 (executable)
@@ -45,6 +45,8 @@
 
 #include <cstdio>
 
+namespace
+{
 class BusyLocker
 {
 public:
@@ -54,6 +56,7 @@ private:
   bool  myPrev;
   bool& myBusy;
 };
+}
 
 /*!
   \brief Create new instance of CAM_Application.
@@ -361,10 +364,10 @@ CAM_Module* CAM_Application::loadModule( const QString& modName, const bool show
   if(version) {    
     for ( ModuleInfoList::iterator it = myInfoList.begin(); it != myInfoList.end(); ++it ) {
       if ( (*it).title == modName ) {
-       if( (*it).version.isEmpty() ) {
-         (*it).version = QString(version);
-       }
-       break;
+        if( (*it).version.isEmpty() ) {
+          (*it).version = QString(version);
+        }
+        break;
       }
     }
   }