mirror of
https://github.com/thestk/stk
synced 2026-04-19 14:06:55 +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 );
|
void removeSampleRateAlert( Stk *ptr );
|
||||||
|
|
||||||
//! Internal function for error reporting that assumes message in \c oStream_ variable.
|
//! 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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Stk :: handleError( StkError::Type type )
|
void Stk :: handleError( StkError::Type type ) const
|
||||||
{
|
{
|
||||||
handleError( oStream_.str(), type );
|
handleError( oStream_.str(), type );
|
||||||
oStream_.str( std::string() ); // reset the ostringstream buffer
|
oStream_.str( std::string() ); // reset the ostringstream buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user