handleError member function must be declared const.

Otherwise it causes a compilation failure when called from const
functions.
This commit is contained in:
Stephen Sinclair
2013-10-01 02:15:35 +02:00
parent c298839886
commit caeaa5778c
2 changed files with 2 additions and 2 deletions

View File

@@ -236,7 +236,7 @@ protected:
void removeSampleRateAlert( Stk *ptr );
//! Internal function for error reporting that assumes message in \c oStream_ variable.
void handleError( StkError::Type type );
void handleError( StkError::Type type ) const;
};

View File

@@ -192,7 +192,7 @@ void Stk :: sleep(unsigned long milliseconds)
#endif
}
void Stk :: handleError( StkError::Type type )
void Stk :: handleError( StkError::Type type ) const
{
handleError( oStream_.str(), type );
oStream_.str( std::string() ); // reset the ostringstream buffer