summaryrefslogtreecommitdiff
path: root/rsc/source/parser
diff options
context:
space:
mode:
Diffstat (limited to 'rsc/source/parser')
-rw-r--r--rsc/source/parser/rsckey.cxx6
-rw-r--r--rsc/source/parser/rsclex.cxx10
2 files changed, 8 insertions, 8 deletions
diff --git a/rsc/source/parser/rsckey.cxx b/rsc/source/parser/rsckey.cxx
index ef3488e4fb98..b60a290362e4 100644
--- a/rsc/source/parser/rsckey.cxx
+++ b/rsc/source/parser/rsckey.cxx
@@ -37,11 +37,11 @@ extern "C" {
int SAL_CALL KeyCompare( const void * pFirst, const void * pSecond )
{
if( ((KEY_STRUCT *)pFirst)->nName > ((KEY_STRUCT *)pSecond)->nName )
- return( 1 );
+ return 1;
else if( ((KEY_STRUCT *)pFirst)->nName < ((KEY_STRUCT *)pSecond)->nName )
- return( -1 );
+ return -1;
else
- return( 0 );
+ return 0;
}
RscNameTable::RscNameTable()
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index c5d3a195e646..6f906e67a746 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -143,7 +143,7 @@ int MakeToken( YYSTYPE * pTokenVal )
c = pFI->GetFastChar();
}
else
- return( c1 );
+ return c1;
}
else
break;
@@ -152,7 +152,7 @@ int MakeToken( YYSTYPE * pTokenVal )
// FIXME: wtf is this supposed to do?
if( (c != 0) == pFI->IsEof() )
{
- return( 0 );
+ return 0;
}
if( bLastInclude )
@@ -169,7 +169,7 @@ int MakeToken( YYSTYPE * pTokenVal )
}
c = pFI->GetFastChar();
pTokenVal->string = const_cast<char*>(pStringContainer->putString( aBuf.getStr() ));
- return( INCLUDE_STRING );
+ return INCLUDE_STRING;
}
}
@@ -213,7 +213,7 @@ int MakeToken( YYSTYPE * pTokenVal )
if (isdigit (c))
{
pTokenVal->value = GetNumber();
- return( NUMBER );
+ return NUMBER;
}
if( isalpha (c) || (c == '_') )
@@ -419,7 +419,7 @@ ERRTYPE parser( RscFileInst * pFileInst )
if( pFileInst->pTypCont->pEH->nErrors )
aError = ERR_ERROR;
pFileInst->SetError( aError );
- return( aError );
+ return aError;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */