diff options
author | Varun Dhall <varun.dhall@studentpartner.com> | 2017-08-17 01:57:59 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-08-17 10:54:59 +0200 |
commit | 006a7b50546c57e260245d4630de565705f2fc38 (patch) | |
tree | c913778b89039c85f0ebeea86bf7a5da11175b9b /editeng | |
parent | a82af43b526c9eca38f74f51d9af0c99c62f8121 (diff) |
Removing unused serialisation code
Change-Id: I86911c77f0831d448ff803afae2a74ec55ad4dd8
Reviewed-on: https://gerrit.libreoffice.org/41233
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/qa/unit/core-test.cxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 6 | ||||
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/editeng.cxx | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index ceea79b810d4..f806a056ff26 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -118,7 +118,7 @@ void Test::setUp() { test::BootstrapFixture::setUp(); - mpItemPool = new EditEngineItemPool(true); + mpItemPool = new EditEngineItemPool(); SfxApplication::GetOrCreate(); } diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 36c101fa8146..3b974ecdb0ef 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1927,7 +1927,7 @@ void ItemList::Insert( const SfxPoolItem* pItem ) EditDoc::EditDoc( SfxItemPool* pPool ) : nLastCache(0), - pItemPool(pPool ? pPool : new EditEngineItemPool(false)), + pItemPool(pPool ? pPool : new EditEngineItemPool()), nDefTab(DEFTAB), bIsVertical(false), bIsTopToBottomVert(false), @@ -3021,9 +3021,9 @@ void CharAttribList::dumpAsXml(struct _xmlTextWriter* pWriter) const xmlTextWriterEndElement(pWriter); } -EditEngineItemPool::EditEngineItemPool( bool bPersistenRefCounts ) +EditEngineItemPool::EditEngineItemPool() : SfxItemPool( "EditEngineItemPool", EE_ITEMS_START, EE_ITEMS_END, - aItemInfos, nullptr, bPersistenRefCounts ) + aItemInfos, nullptr ) { m_xDefItems = EditDLL::Get().GetGlobalData()->GetDefItems(); SetDefaults(m_xDefItems->getDefaults()); diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 40cbcd1ea720..5665b2ef3379 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -836,7 +836,7 @@ class EditEngineItemPool : public SfxItemPool private: std::shared_ptr<DefItems> m_xDefItems; public: - EditEngineItemPool(bool bPersistenRefCounts); + EditEngineItemPool(); protected: virtual ~EditEngineItemPool() override; }; diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 402f1abd88a7..f3a1abd2df5e 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -2570,9 +2570,9 @@ void EditEngine::FieldClicked( const SvxFieldItem&, sal_Int32, sal_Int32 ) // ====================== Static Methods ======================= -SfxItemPool* EditEngine::CreatePool( bool bPersistentRefCounts ) +SfxItemPool* EditEngine::CreatePool() { - SfxItemPool* pPool = new EditEngineItemPool( bPersistentRefCounts ); + SfxItemPool* pPool = new EditEngineItemPool(); return pPool; } |