From 18af59fbb750389261fd4e03daf46bd9d1f4cf99 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 4 Feb 2016 12:34:08 +0100 Subject: framework: clean up ugly _ prefixed identifiers Change-Id: If965ad91e771c84e89c6690a4e1b733d4e70f1b4 --- framework/source/uielement/toolbarmanager.cxx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'framework') diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index eab47390c7c8..af416c2fa935 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -522,7 +522,8 @@ void SAL_CALL ToolBarManager::elementRemoved( const css::ui::ConfigurationEvent& { impl_elementChanged(true,Event); } -void ToolBarManager::impl_elementChanged(bool _bRemove,const css::ui::ConfigurationEvent& Event ) +void ToolBarManager::impl_elementChanged(bool const isRemove, + const css::ui::ConfigurationEvent& Event) { SolarMutexGuard g; @@ -551,7 +552,7 @@ void ToolBarManager::impl_elementChanged(bool _bRemove,const css::ui::Configurat CommandToInfoMap::iterator pIter = m_aCommandMap.find( aSeq[i] ); if ( pIter != m_aCommandMap.end() && ( pIter->second.nImageInfo >= nImageInfo )) { - if ( _bRemove ) + if (isRemove) { Image aImage; if (( pIter->second.nImageInfo == 0 ) && ( pIter->second.nImageInfo == nImageInfo )) @@ -567,7 +568,7 @@ void ToolBarManager::impl_elementChanged(bool _bRemove,const css::ui::Configurat } setToolBarImage(aImage,pIter); - } // if ( _bRemove ) + } // if (isRemove) else { Reference< XGraphic > xGraphic; @@ -582,13 +583,14 @@ void ToolBarManager::impl_elementChanged(bool _bRemove,const css::ui::Configurat } } } -void ToolBarManager::setToolBarImage(const Image& _aImage,const CommandToInfoMap::const_iterator& _pIter) +void ToolBarManager::setToolBarImage(const Image& rImage, + const CommandToInfoMap::const_iterator& rIter) { - const ::std::vector< sal_uInt16 >& _rIDs = _pIter->second.aIds; - m_pToolBar->SetItemImage( _pIter->second.nId, _aImage ); - for (auto const& it : _rIDs) + const ::std::vector& rIDs = rIter->second.aIds; + m_pToolBar->SetItemImage( rIter->second.nId, rImage ); + for (auto const& it : rIDs) { - m_pToolBar->SetItemImage(it, _aImage); + m_pToolBar->SetItemImage(it, rImage); } } -- cgit