diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 08:31:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 09:19:32 +0200 |
commit | 2e0a25ce2b87d3a4bbf944025fc3720933fb391d (patch) | |
tree | 57bd8b7c4a4cfe2c0bf5072b25f1d525096d4ff2 /svl/source | |
parent | b02b3bcf4465c9ccb3edcaa26e090db0581cba9e (diff) |
loplugin:constantparam
Change-Id: Ic87f0cc863490858b7cc7e74a7f90ec31992dd53
Reviewed-on: https://gerrit.libreoffice.org/42089
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r-- | svl/source/items/itempool.cxx | 4 | ||||
-rw-r--r-- | svl/source/items/macitem.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 10a8761eb3bb..c80605970327 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -906,14 +906,14 @@ sal_uInt16 SfxItemPool::GetWhich( sal_uInt16 nSlotId, bool bDeep ) const } -sal_uInt16 SfxItemPool::GetSlotId( sal_uInt16 nWhich, bool bDeep ) const +sal_uInt16 SfxItemPool::GetSlotId( sal_uInt16 nWhich ) const { if ( !IsWhich(nWhich) ) return nWhich; if ( !IsInRange( nWhich ) ) { - if ( pImpl->mpSecondary && bDeep ) + if ( pImpl->mpSecondary ) return pImpl->mpSecondary->GetSlotId(nWhich); assert(false && "unknown WhichId - cannot get slot-id"); return 0; diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx index 7c4beb9f249a..01f30ee45522 100644 --- a/svl/source/items/macitem.cxx +++ b/svl/source/items/macitem.cxx @@ -94,10 +94,10 @@ bool SvxMacroTableDtor::operator==( const SvxMacroTableDtor& rOther ) const return true; } -void SvxMacroTableDtor::Read( SvStream& rStrm, sal_uInt16 nVersion ) +void SvxMacroTableDtor::Read( SvStream& rStrm ) { - if( SVX_MACROTBL_VERSION40 <= nVersion ) - rStrm.ReadUInt16( nVersion ); + sal_uInt16 nVersion; + rStrm.ReadUInt16( nVersion ); short nMacro(0); rStrm.ReadInt16(nMacro); |