diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-09 09:47:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-09 09:46:53 +0000 |
commit | c8a93253e43e81e5dbc89937f2a21ca75e0582bc (patch) | |
tree | c5ebf27b0f2a5ece4846bf2e0cd0a09815f105e0 /sfx2 | |
parent | 9885a4f10f6b900a2a870e5fe691c4a465522b75 (diff) |
remove unused NOT_POOLABLE enum value
and simplify the resulting SfxItemInfo field down to a single bool
Change-Id: I73e24e83d39afc7660ac85872ba96bc790713cb2
Reviewed-on: https://gerrit.libreoffice.org/23058
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/explorer/nochaos.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/explorer/nochaos.cxx b/sfx2/source/explorer/nochaos.cxx index b9716e887570..4f174a848379 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, SfxItemPoolFlags nFlags ); + inline void Insert( SfxPoolItem* pItem, sal_uInt16 nSID, bool bPoolable ); public: explicit CntStaticPoolDefaults_Impl( CntItemPool* pPool ); @@ -158,13 +158,13 @@ sal_uInt16 CntItemPool::Release() inline void CntStaticPoolDefaults_Impl::Insert( SfxPoolItem* pItem, /* Static Pool Default Item */ - sal_uInt16 nSID, SfxItemPoolFlags nFlags /* Item Info */ ) + sal_uInt16 nSID, bool bPoolable /* Item Info */ ) { sal_uInt16 nPos = pItem->Which() - WID_CHAOS_START; m_ppDefaults[ nPos ] = pItem; m_pItemInfos[ nPos ]._nSID = nSID; - m_pItemInfos[ nPos ]._nFlags = nFlags; + m_pItemInfos[ nPos ]._bPoolable = bPoolable; } @@ -188,7 +188,7 @@ CntStaticPoolDefaults_Impl::CntStaticPoolDefaults_Impl( CntItemPool* /*pPool*/ ) Insert( new SfxStringItem( WID_CHAOS_START, OUString() ), 0, - SfxItemPoolFlags::POOLABLE ); + true ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |