diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-14 08:53:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-14 08:46:12 +0000 |
commit | 0761f97525b3f3ce2cd73f8db28bf389a3c44f57 (patch) | |
tree | 29e1b724f563011eaab28c40eba8e4db8e2fa898 /basic | |
parent | e44addfd5d227123928d1295bb8582799aaac6a0 (diff) |
loplugin:constantparam in accessibility to basic
Change-Id: Id77cbcaefebf310a5d99c6ac12d154e182fd0a1c
Reviewed-on: https://gerrit.libreoffice.org/28860
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index c5e11629a161..d0296fcf4c5f 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -119,15 +119,7 @@ void SbxBase::AddFactory( SbxFactory* pFac ) { SbxAppData& r = GetSbxData_Impl(); - // From 1996-03-06: take the HandleLast-Flag into account - sal_uInt16 nPos = r.m_Factories.size(); // Insert position - if( !pFac->IsHandleLast() ) // Only if not self HandleLast - { - // Rank new factory in front of factories with HandleLast - while (nPos > 0 && r.m_Factories[ nPos-1 ]->IsHandleLast()) - nPos--; - } - r.m_Factories.insert(r.m_Factories.begin() + nPos, std::unique_ptr<SbxFactory>(pFac)); + r.m_Factories.insert(r.m_Factories.begin(), std::unique_ptr<SbxFactory>(pFac)); } void SbxBase::RemoveFactory( SbxFactory* pFac ) |