summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-03-09 16:52:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-03-09 20:56:26 +0000
commit924b2923b8b1515a4c37079e72a2a9cc6010a4f4 (patch)
tree111cf075f4085a9d1b4f1a69e7d5cbcaff57133c /toolkit
parentb926671283837ccf4ee1b283ff4fb286e29cedfd (diff)
V801: Decreased performance
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/source/controls/stdtabcontrollermodel.cxx4
1 files changed, 2 insertions, 2 deletions
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;