diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-02 17:20:31 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 10:20:07 -0400 |
commit | c7813f25c759dc4be5c543d375cd52e71b6ade98 (patch) | |
tree | 4c169cb63ba7a8abaaf22edc4f95e157702761df /editeng | |
parent | Boolean cleanup. (diff) | |
download | core-c7813f25c759dc4be5c543d375cd52e71b6ade98.tar.gz core-c7813f25c759dc4be5c543d375cd52e71b6ade98.zip |
Use initializer for this. No need to call SetModified to false.
Diffstat (limited to 'editeng')
-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() |