Kaydet (Commit) c7813f25 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Use initializer for this. No need to call SetModified to false.

üst 48abb149
...@@ -1687,25 +1687,14 @@ void ItemList::Insert( const SfxPoolItem* pItem ) ...@@ -1687,25 +1687,14 @@ void ItemList::Insert( const SfxPoolItem* pItem )
EditDoc::EditDoc( SfxItemPool* pPool ) : EditDoc::EditDoc( SfxItemPool* pPool ) :
nLastCache(0), nLastCache(0),
pItemPool(pPool ? pPool : new EditEngineItemPool(false)),
nDefTab(DEFTAB),
bIsVertical(false), bIsVertical(false),
bIsFixedCellHeight(false), bIsFixedCellHeight(false),
bOwnerOfPool(pPool ? false : true), bOwnerOfPool(pPool ? false : true),
bModified(false) 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 // Don't create a empty node, Clear() will be called in EditEngine-CTOR
SetModified( sal_False );
}; };
EditDoc::~EditDoc() EditDoc::~EditDoc()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment