diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-17 11:21:56 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-17 11:02:18 +0000 |
commit | db93b92d78714ed193b3cbe52b18e3cfd9da99b8 (patch) | |
tree | 1442edf9552192ce29b3e271396291e2bbd269a0 /sfx2/source/explorer/nochaos.cxx | |
parent | 336d816176650726f6d14539464d9fd28ddd032d (diff) |
loplugin:constantparam in sfx2
Change-Id: I53e690ab8d50fb3ce43ba633fc018e7b66e591cd
Reviewed-on: https://gerrit.libreoffice.org/23321
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/explorer/nochaos.cxx')
-rw-r--r-- | sfx2/source/explorer/nochaos.cxx | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sfx2/source/explorer/nochaos.cxx b/sfx2/source/explorer/nochaos.cxx index 4f174a848379..ba13039a680d 100644 --- a/sfx2/source/explorer/nochaos.cxx +++ b/sfx2/source/explorer/nochaos.cxx @@ -41,7 +41,7 @@ class CntStaticPoolDefaults_Impl: private boost::noncopyable SfxItemInfo* m_pItemInfos; private: - inline void Insert( SfxPoolItem* pItem, sal_uInt16 nSID, bool bPoolable ); + inline void Insert( SfxPoolItem* pItem ); public: explicit CntStaticPoolDefaults_Impl( CntItemPool* pPool ); @@ -157,14 +157,13 @@ sal_uInt16 CntItemPool::Release() inline void CntStaticPoolDefaults_Impl::Insert( - SfxPoolItem* pItem, /* Static Pool Default Item */ - sal_uInt16 nSID, bool bPoolable /* Item Info */ ) + SfxPoolItem* pItem /* Static Pool Default Item */ ) { sal_uInt16 nPos = pItem->Which() - WID_CHAOS_START; m_ppDefaults[ nPos ] = pItem; - m_pItemInfos[ nPos ]._nSID = nSID; - m_pItemInfos[ nPos ]._bPoolable = bPoolable; + m_pItemInfos[ nPos ]._nSID = 0; + m_pItemInfos[ nPos ]._bPoolable = true; } @@ -185,10 +184,7 @@ CntStaticPoolDefaults_Impl::CntStaticPoolDefaults_Impl( CntItemPool* /*pPool*/ ) { memset( m_ppDefaults, 0, sizeof( SfxPoolItem* ) * m_nItems ); memset( m_pItemInfos, 0, sizeof( SfxItemInfo ) * m_nItems ); - Insert( - new SfxStringItem( WID_CHAOS_START, OUString() ), - 0, - true ); + Insert( new SfxStringItem( WID_CHAOS_START, OUString() ) ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |