diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-25 18:56:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-27 10:10:52 +0200 |
commit | f3049f68584811bb897873f35e0c302898af2d31 (patch) | |
tree | b77f8bee3f733b8f2565a64276e33387576a26ac /framework | |
parent | weld SwLabDlg (diff) | |
download | core-f3049f68584811bb897873f35e0c302898af2d31.tar.gz core-f3049f68584811bb897873f35e0c302898af2d31.zip |
loplugin:constantparam
Change-Id: I966dcf87be021520e7cc394338b9c0574bb8afee
Reviewed-on: https://gerrit.libreoffice.org/53541
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/statusbarmerger.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/framework/source/uielement/statusbarmerger.cxx b/framework/source/uielement/statusbarmerger.cxx index 2680a63076bd..4810152c02df 100644 --- a/framework/source/uielement/statusbarmerger.cxx +++ b/framework/source/uielement/statusbarmerger.cxx @@ -126,11 +126,10 @@ bool lcl_MergeItems( StatusBar* pStatusbar, bool lcl_ReplaceItem( StatusBar* pStatusbar, sal_uInt16 nPos, sal_uInt16& rItemId, - const ::rtl::OUString& rModuleIdentifier, const AddonStatusbarItemContainer& rAddonToolbarItems ) { pStatusbar->RemoveItem( pStatusbar->GetItemId( nPos ) ); - return lcl_MergeItems( pStatusbar, nPos, 0, rItemId, rModuleIdentifier, rAddonToolbarItems ); + return lcl_MergeItems( pStatusbar, nPos, 0, rItemId, OUString(), rAddonToolbarItems ); } bool lcl_RemoveItems( StatusBar* pStatusbar, @@ -199,7 +198,7 @@ bool StatusbarMerger::ProcessMergeOperation( else if ( rMergeCommand == MERGECOMMAND_ADDBEFORE ) return lcl_MergeItems( pStatusbar, nPos, 0, rItemId, "", rItems ); else if ( rMergeCommand == MERGECOMMAND_REPLACE ) - return lcl_ReplaceItem( pStatusbar, nPos, rItemId, "", rItems ); + return lcl_ReplaceItem( pStatusbar, nPos, rItemId, rItems ); else if ( rMergeCommand == MERGECOMMAND_REMOVE ) return lcl_RemoveItems( pStatusbar, nPos, rMergeCommandParameter ); |