Salome HOME
Fix for compilation without SimanIO
authormpv <mpv@opencascade.com>
Thu, 18 Oct 2012 07:37:07 +0000 (07:37 +0000)
committermpv <mpv@opencascade.com>
Thu, 18 Oct 2012 07:37:07 +0000 (07:37 +0000)
src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx

index d0d3d0b4345cacda12a97ab0fd46f1ae99e9b00d..a925f1127d5dae58bbedc9727f2dea3c7a775300 100644 (file)
@@ -49,7 +49,9 @@ using namespace std;
 SALOMEDSImpl_SimanStudy::SALOMEDSImpl_SimanStudy()
 {
   _study = 0;
+#ifdef WITH_SIMANIO
   _checkedOut = new SimanIO_Configuration;
+#endif
 }
 
 //============================================================================
@@ -59,8 +61,8 @@ SALOMEDSImpl_SimanStudy::SALOMEDSImpl_SimanStudy()
 //============================================================================
 SALOMEDSImpl_SimanStudy::~SALOMEDSImpl_SimanStudy()
 {
-  if (_checkedOut) {
 #ifdef WITH_SIMANIO
+  if (_checkedOut) {
     SimanIO_Configuration::ActivitiesIterator actIter(*_checkedOut);
     for(; actIter.More(); actIter.Next()) {
       SimanIO_Activity::DocumentsIterator aDocIter(actIter.Activity());
@@ -80,9 +82,9 @@ SALOMEDSImpl_SimanStudy::~SALOMEDSImpl_SimanStudy()
         }
       }
     }
-#endif
     delete _checkedOut;
   }
+#endif
 }
 
 //============================================================================