From f9d3a2875fbaa064d753e9a17e9ec6c176da2fca Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 18 Oct 2012 07:37:07 +0000 Subject: [PATCH] Fix for compilation without SimanIO --- src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx index d0d3d0b43..a925f1127 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_SimanStudy.cxx @@ -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 } //============================================================================ -- 2.39.2