diff options
-rw-r--r-- | editeng/source/editeng/editdoc.cxx | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx index 7f4a03005ba8..4f1010eb5a05 100644 --- a/editeng/source/editeng/editdoc.cxx +++ b/editeng/source/editeng/editdoc.cxx @@ -1687,25 +1687,14 @@ void ItemList::Insert( const SfxPoolItem* pItem ) EditDoc::EditDoc( SfxItemPool* pPool ) : nLastCache(0), + pItemPool(pPool ? pPool : new EditEngineItemPool(false)), + nDefTab(DEFTAB), bIsVertical(false), bIsFixedCellHeight(false), bOwnerOfPool(pPool ? false : true), bModified(false) { - if ( pPool ) - { - pItemPool = pPool; - } - else - { - pItemPool = new EditEngineItemPool( sal_False ); - } - - nDefTab = DEFTAB; - // Don't create a empty node, Clear() will be called in EditEngine-CTOR - - SetModified( sal_False ); }; EditDoc::~EditDoc() |