diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-05 21:31:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-06 08:31:46 +0200 |
commit | 45adae8fd6e4a6f63220b619d16fb5bd06b82d95 (patch) | |
tree | 22354d3e8d1e6e9ab0618962f51600efa47836c2 /basic/source/comp/dim.cxx | |
parent | f7a3bdf623ca0c8db81997d2b60ed4acb3b51149 (diff) |
Avoid reserved identifiers
Change-Id: Ibba1a36d4f3744fa68f7e9d0076c997e076262cb
Diffstat (limited to 'basic/source/comp/dim.cxx')
-rw-r--r-- | basic/source/comp/dim.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx index 031bf81f9c1d..28b7e6e3e6e3 100644 --- a/basic/source/comp/dim.cxx +++ b/basic/source/comp/dim.cxx @@ -106,7 +106,7 @@ void SbiParser::TypeDecl( SbiSymDef& rDef, bool bAsNewAlreadyParsed ) case TDATE: case TSTRING: case TOBJECT: - case _ERROR_: + case ERROR_: case TBOOLEAN: case TVARIANT: case TBYTE: @@ -222,9 +222,9 @@ void SbiParser::DefVar( SbiOpcode eOp, bool bStatic ) // PRIVATE is a synonymous for DIM // _CONST_? bool bConst = false; - if( eCurTok == _CONST_ ) + if( eCurTok == CONST_ ) bConst = true; - else if( Peek() == _CONST_ ) + else if( Peek() == CONST_ ) { Next(); bConst = true; @@ -831,7 +831,7 @@ SbiProcDef* SbiParser::ProcDecl( bool bDecl ) SbxDataType eType = eScanType; SbiProcDef* pDef = new SbiProcDef( this, aName, true ); pDef->SetType( eType ); - if( Peek() == _CDECL_ ) + if( Peek() == CDECL_ ) { Next(); pDef->SetCdecl(); } @@ -872,7 +872,7 @@ SbiProcDef* SbiParser::ProcDecl( bool bDecl ) } if( pDef->IsCdecl() ) { - Error( ERRCODE_BASIC_UNEXPECTED, _CDECL_ ); + Error( ERRCODE_BASIC_UNEXPECTED, CDECL_ ); } pDef->SetCdecl( false ); pDef->GetLib().clear(); @@ -887,7 +887,7 @@ SbiProcDef* SbiParser::ProcDecl( bool bDecl ) } if( pDef->IsCdecl() ) { - Error( ERRCODE_BASIC_UNEXPECTED, _CDECL_ ); + Error( ERRCODE_BASIC_UNEXPECTED, CDECL_ ); } pDef->SetCdecl( false ); pDef->GetAlias().clear(); @@ -907,7 +907,7 @@ SbiProcDef* SbiParser::ProcDecl( bool bDecl ) bool bByVal = false; bool bOptional = false; bool bParamArray = false; - while( Peek() == BYVAL || Peek() == BYREF || Peek() == _OPTIONAL_ ) + while( Peek() == BYVAL || Peek() == BYREF || Peek() == OPTIONAL_ ) { if( Peek() == BYVAL ) { @@ -917,7 +917,7 @@ SbiProcDef* SbiParser::ProcDecl( bool bDecl ) { bByVal = false; } - else if ( Peek() == _OPTIONAL_ ) + else if ( Peek() == OPTIONAL_ ) { bOptional = true; } |