summaryrefslogtreecommitdiff
path: root/rsc/source/parser/erscerr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source/parser/erscerr.cxx')
-rw-r--r--rsc/source/parser/erscerr.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/rsc/source/parser/erscerr.cxx b/rsc/source/parser/erscerr.cxx
index 30c911965e0d..ce67dfd9c60b 100644
--- a/rsc/source/parser/erscerr.cxx
+++ b/rsc/source/parser/erscerr.cxx
@@ -72,7 +72,7 @@ void RscError::StdLstErr( const char * pStr ){
void RscError::WriteError( const ERRTYPE& rError, const char * pMessage )
{
- switch( rError )
+ switch( rError.GetError() )
{
case ERR_ERROR: {
StdLstErr( "!! " );
@@ -338,7 +338,7 @@ void RscError::ErrorFormat( const ERRTYPE& rError, RscTop * pClass,
StdLstErr( "\n" );
}
StdLstErr( "f" );
- sprintf( buf, "%u", (unsigned int)rError );
+ sprintf( buf, "%u", (unsigned int)rError.GetError() );
StdLstErr( buf );
if( pFI && pTC ){
@@ -375,7 +375,7 @@ void RscError::ErrorFormat( const ERRTYPE& rError, RscTop * pClass,
void RscError::Error( const ERRTYPE& rError, RscTop * pClass,
const RscId & aId, const char * pMessage )
{
- if( WRN_LOCALID == rError ) // ignore warnings
+ if( WRN_LOCALID == rError.GetError() ) // ignore warnings
return;
if( rError.IsError() )
nErrors++;
@@ -389,7 +389,7 @@ void RscError::Error( const ERRTYPE& rError, RscTop * pClass,
void RscError::FatalError( const ERRTYPE& rError, const RscId &aId,
const char * pMessage )
{
- if( ERR_USAGE != rError ){
+ if( ERR_USAGE != rError.GetError() ){
nErrors++;
ErrorFormat( rError, nullptr, aId );
WriteError( rError, pMessage );