From 924b2923b8b1515a4c37079e72a2a9cc6010a4f4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 9 Mar 2015 16:52:13 +0000 Subject: V801: Decreased performance Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d --- toolkit/source/controls/stdtabcontrollermodel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/controls/stdtabcontrollermodel.cxx b/toolkit/source/controls/stdtabcontrollermodel.cxx index 1ea8acca03e1..8bac30c7f019 100644 --- a/toolkit/source/controls/stdtabcontrollermodel.cxx +++ b/toolkit/source/controls/stdtabcontrollermodel.cxx @@ -144,12 +144,12 @@ void StdTabControllerModel::ImplSetControlModels( UnoControlModelEntryList& rLis } } -sal_uInt32 StdTabControllerModel::ImplGetControlPos( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > xCtrl, const UnoControlModelEntryList& rList ) const +sal_uInt32 StdTabControllerModel::ImplGetControlPos( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& rCtrl, const UnoControlModelEntryList& rList ) const { for ( size_t n = rList.size(); n; ) { UnoControlModelEntry* pEntry = rList[ --n ]; - if ( !pEntry->bGroup && ( *pEntry->pxControl == xCtrl ) ) + if ( !pEntry->bGroup && ( *pEntry->pxControl == rCtrl ) ) return n; } return CONTROLPOS_NOTFOUND; -- cgit v1.2.3