diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-02-28 22:02:53 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-02-28 22:02:53 -0500 |
commit | d8183c10e09834ec8d89a6de566af8eeab3d27be (patch) | |
tree | 7de8aea2c915775f6633fb897bdac579f67be7e7 /sc/source/core/data/dpobject.cxx | |
parent | 5f10bd6bd5995fd229fa1a316dee787457a4d43a (diff) |
More cleanups.
ScDPObject::bRefresh flag is no longer used.
Diffstat (limited to 'sc/source/core/data/dpobject.cxx')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 4e42206d3..d8ceeefc1 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -172,8 +172,7 @@ ScDPObject::ScDPObject( ScDocument* pD ) : mnAutoFormatIndex( 65535 ), bAllowMove( FALSE ), nHeaderRows( 0 ), - mbHeaderLayout(false), - bRefresh( FALSE ) + mbHeaderLayout(false) { } @@ -193,8 +192,7 @@ ScDPObject::ScDPObject(const ScDPObject& r) : mnAutoFormatIndex( r.mnAutoFormatIndex ), bAllowMove( FALSE ), nHeaderRows( r.nHeaderRows ), - mbHeaderLayout( r.mbHeaderLayout ), - bRefresh( r.bRefresh ) + mbHeaderLayout( r.mbHeaderLayout ) { if (r.pSaveData) pSaveData = new ScDPSaveData(*r.pSaveData); @@ -459,17 +457,11 @@ void ScDPObject::CreateObjects() { DBG_ASSERT( !pServDesc, "DPSource could not be created" ); ScDPTableData* pData = GetTableData(); - ScDPSource* pSource = new ScDPSource( pData ); xSource = pSource; - - if ( pSaveData && bRefresh ) - { - pSaveData->Refresh( xSource ); - bRefresh = FALSE; - } } - if (pSaveData ) + + if (pSaveData) pSaveData->WriteToSource( xSource ); } else if (bSettingsChanged) |