From 9fae6cc223d70ce2fbe5899af5719aa71de9c2a1 Mon Sep 17 00:00:00 2001 From: srn Date: Wed, 8 Feb 2006 14:20:57 +0000 Subject: [PATCH] Modified method getLastSavePoint --- src/SALOMEDS/SALOMEDS_IParameters.cxx | 5 +---- src/SALOMEDS/SALOMEDS_IParameters.hxx | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/SALOMEDS/SALOMEDS_IParameters.cxx b/src/SALOMEDS/SALOMEDS_IParameters.cxx index a73712014..d77287a9a 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.cxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.cxx @@ -224,11 +224,8 @@ bool SALOMEDS_IParameters::isDumpPython() return (bool)_ap->GetBool(_AP_DUMP_PYTHON_); } -int SALOMEDS_IParameters::getLastSavePoint(const string& theID) +int SALOMEDS_IParameters::getLastSavePoint(_PTR(Study) study, const string& theID) { - if(!_ap) return -1; - _PTR(SObject) main_so = _ap->GetSObject(); - _PTR(Study) study = main_so->GetStudy(); _PTR(SObject) so = study->FindComponent(theID); if(!so) return -1; diff --git a/src/SALOMEDS/SALOMEDS_IParameters.hxx b/src/SALOMEDS/SALOMEDS_IParameters.hxx index 8bfb8dfc6..b1ddc8aa9 100644 --- a/src/SALOMEDS/SALOMEDS_IParameters.hxx +++ b/src/SALOMEDS/SALOMEDS_IParameters.hxx @@ -125,7 +125,7 @@ public: /*! Returns an ID of the last save point */ - int getLastSavePoint(const std::string& theID); + static int getLastSavePoint(_PTR(Study) study, const std::string& theID); private: _PTR(AttributeParameter) _ap; -- 2.39.2