From c7813f25c759dc4be5c543d375cd52e71b6ade98 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Mon, 2 Apr 2012 17:20:31 -0400 Subject: Use initializer for this. No need to call SetModified to false. --- editeng/source/editeng/editdoc.cxx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'editeng') 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() -- cgit