From: sln Date: Fri, 8 Jul 2005 08:48:15 +0000 (+0000) Subject: isReadyToStart method is constant now X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb1bb333bf8ab860e43a0216f832d27aab48f0b5;p=modules%2Fgui.git isReadyToStart method is constant now --- diff --git a/src/SUIT/SUIT_Operation.cxx b/src/SUIT/SUIT_Operation.cxx index 65c8c2707..0929794b7 100755 --- a/src/SUIT/SUIT_Operation.cxx +++ b/src/SUIT/SUIT_Operation.cxx @@ -185,7 +185,7 @@ void SUIT_Operation::suspend() // Purpose : Verify whether operator is ready to start. Default implementation // returns true. Redefine this method to add own verifications //======================================================================= -bool SUIT_Operation::isReadyToStart() +bool SUIT_Operation::isReadyToStart() const { return true; } @@ -310,7 +310,7 @@ void SUIT_Operation::setExecStatus( const int theVal ) // name : execStatus // Purpose : Gets execution status //======================================================================= -int SUIT_Operation::execStatus() +int SUIT_Operation::execStatus() const { return myExecStatus; } diff --git a/src/SUIT/SUIT_Operation.h b/src/SUIT/SUIT_Operation.h index 2c729e07a..4bebbc928 100755 --- a/src/SUIT/SUIT_Operation.h +++ b/src/SUIT/SUIT_Operation.h @@ -151,7 +151,7 @@ signals: protected: - virtual bool isReadyToStart(); + virtual bool isReadyToStart() const; //!< Verify whether operator is ready to start. /*!< Default implementation returns true. Redefine this method to add own verifications */ @@ -168,7 +168,7 @@ protected: void setExecStatus( const int ); //!< Sets myExecStatus to the given value - int execStatus(); + int execStatus() const; //!< Gets execution status void start( SUIT_Operation* );