diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-14 16:31:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-15 09:36:41 +0200 |
commit | f19e32b101d56ceb7215a6a9d45d39a2cd264189 (patch) | |
tree | 660e03934bc5a036c7538945ab60b2267e7a58c6 /rsc/source/res | |
parent | 802765dbe5f79748453c985da08824fb9ddefe11 (diff) |
loplugin:unusedmethods unused return value in rsc
Change-Id: I6301aed80083c21e26851817220de6e135eb4da7
Diffstat (limited to 'rsc/source/res')
-rw-r--r-- | rsc/source/res/rscconst.cxx | 4 | ||||
-rw-r--r-- | rsc/source/res/rscrange.cxx | 8 |
2 files changed, 3 insertions, 9 deletions
diff --git a/rsc/source/res/rscconst.cxx b/rsc/source/res/rscconst.cxx index 6e6c54c052cf..a61af44b2a47 100644 --- a/rsc/source/res/rscconst.cxx +++ b/rsc/source/res/rscconst.cxx @@ -44,7 +44,7 @@ RSCCLASS_TYPE RscConst::GetClassType() const return RSCCLASS_CONST; } -ERRTYPE RscConst::SetConstant( Atom nVarName, sal_Int32 lValue ) +void RscConst::SetConstant( Atom nVarName, sal_Int32 lValue ) { if( pVarArray ) pVarArray = static_cast<VarEle *>(rtl_reallocateMemory( static_cast<void *>(pVarArray), @@ -54,8 +54,6 @@ ERRTYPE RscConst::SetConstant( Atom nVarName, sal_Int32 lValue ) pVarArray[ nEntries ].nId = nVarName; pVarArray[ nEntries ].lValue = lValue; nEntries++; - - return ERR_OK; } bool RscConst::GetConstValue( Atom nConst, sal_Int32 * pValue ) const diff --git a/rsc/source/res/rscrange.cxx b/rsc/source/res/rscrange.cxx index 4164bfde30a7..9f7a73087f11 100644 --- a/rsc/source/res/rscrange.cxx +++ b/rsc/source/res/rscrange.cxx @@ -36,7 +36,7 @@ RSCCLASS_TYPE RscRange::GetClassType() const return RSCCLASS_NUMBER; } -ERRTYPE RscRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ) +void RscRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ) { if( nMinimum > nMaximum ) { @@ -48,8 +48,6 @@ ERRTYPE RscRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ) nMax = nMaximum; nMin = nMinimum; } - - return ERR_OK; } bool RscRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) @@ -150,7 +148,7 @@ RSCCLASS_TYPE RscLongRange::GetClassType() const return RSCCLASS_NUMBER; } -ERRTYPE RscLongRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ) +void RscLongRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ) { if( nMinimum > nMaximum ) { @@ -162,8 +160,6 @@ ERRTYPE RscLongRange::SetRange( sal_Int32 nMinimum, sal_Int32 nMaximum ) nMax = nMaximum; nMin = nMinimum; } - - return ERR_OK; } bool RscLongRange::IsValueDefault( const RSCINST & rInst, CLASS_DATA pDef ) |