mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
handleError member function must be declared const.
Otherwise it causes a compilation failure when called from const functions.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user