diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /rsc/inc/rscflag.hxx | |
parent | import the document properties before the document (diff) | |
download | core-ba233e87efddf0a6751b35784dca1c805364ff3b.tar.gz core-ba233e87efddf0a6751b35784dca1c805364ff3b.zip |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'rsc/inc/rscflag.hxx')
-rw-r--r-- | rsc/inc/rscflag.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rsc/inc/rscflag.hxx b/rsc/inc/rscflag.hxx index 875ebadabf92..cb10c496d705 100644 --- a/rsc/inc/rscflag.hxx +++ b/rsc/inc/rscflag.hxx @@ -71,11 +71,11 @@ public: Atom nConstantId ); virtual RSCCLASS_TYPE GetClassType() const SAL_OVERRIDE; RSCINST Create( RSCINST * pInst, const RSCINST & rDflt, bool ) SAL_OVERRIDE; - sal_uInt32 Size() SAL_OVERRIDE { return( pRefClass->Size() ); }; + sal_uInt32 Size() SAL_OVERRIDE { return pRefClass->Size(); } // Eine Zuweisung an eine Variable bool IsDefault( const RSCINST & rInst ) SAL_OVERRIDE { - return( pRefClass->IsDefault( rInst, nConstId ) ); + return pRefClass->IsDefault( rInst, nConstId ); }; // Als Default setzen bool IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) SAL_OVERRIDE @@ -86,15 +86,14 @@ public: ERRTYPE SetBool( const RSCINST & rInst, bool bValue ) SAL_OVERRIDE { if( bValue ) - return( pRefClass->SetConst( rInst, nConstId, sal_Int32(bValue) ) ); + return pRefClass->SetConst( rInst, nConstId, sal_Int32(bValue) ); else - return( pRefClass-> - SetNotConst( rInst, nConstId ) ); + return pRefClass->SetNotConst( rInst, nConstId ); } ERRTYPE GetBool( const RSCINST & rInst, bool * pB ) SAL_OVERRIDE { *pB = pRefClass->IsSet( rInst, nConstId ); - return( ERR_OK ); + return ERR_OK; } void WriteSrc( const RSCINST & rInst, FILE * fOutput, RscTypCont * pTC, sal_uInt32 nTab, const char * ) SAL_OVERRIDE; |