summaryrefslogtreecommitdiff
path: root/rsc/source/parser/rsclex.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-11 13:20:49 +0200
committerNoel Grandin <noel@peralex.com>2015-02-23 09:26:58 +0200
commitba233e87efddf0a6751b35784dca1c805364ff3b (patch)
tree9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /rsc/source/parser/rsclex.cxx
parenta2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff)
remove unnecessary parenthesis in return statements
found with $ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;' Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'rsc/source/parser/rsclex.cxx')
-rw-r--r--rsc/source/parser/rsclex.cxx10
1 files changed, 5 insertions, 5 deletions
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: */