summaryrefslogtreecommitdiff
path: root/sc/source/core/data/dpobject.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-28 22:02:53 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-28 22:02:53 -0500
commitd8183c10e09834ec8d89a6de566af8eeab3d27be (patch)
tree7de8aea2c915775f6633fb897bdac579f67be7e7 /sc/source/core/data/dpobject.cxx
parent5f10bd6bd5995fd229fa1a316dee787457a4d43a (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.cxx16
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)