diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-13 16:07:16 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-03-14 00:35:29 -0400 |
commit | 49cb939de712163c90f3e989c846a68d5ae86ee2 (patch) | |
tree | 23406859d914153f4ae16d0e4f5ced45d3ecba8d /sc/source | |
parent | b4af9a6a902bef4d4f6dc4e550097ef8b6254abd (diff) |
Rename ClearSource() to ClearTableData().
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/dpcache.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 12 | ||||
-rw-r--r-- | sc/source/ui/docshell/dbdocfun.cxx | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sc/source/core/data/dpcache.cxx b/sc/source/core/data/dpcache.cxx index 0281a54ede2d..6ad497ee7826 100644 --- a/sc/source/core/data/dpcache.cxx +++ b/sc/source/core/data/dpcache.cxx @@ -242,7 +242,7 @@ struct ClearObjectSource : std::unary_function<ScDPObject*, void> { void operator() (ScDPObject* p) const { - p->ClearSource(); + p->ClearTableData(); } }; diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index 3b192b5dae36..31afb26d612d 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -213,7 +213,7 @@ ScDPObject::~ScDPObject() delete pSheetDesc; delete pImpDesc; delete pServDesc; - ClearSource(); + ClearTableData(); } void ScDPObject::EnableGetPivotData(bool b) @@ -282,7 +282,7 @@ void ScDPObject::SetSheetDesc(const ScSheetSourceDesc& rDesc) aParam.bHasHeader = true; pSheetDesc->SetQueryParam(aParam); - ClearSource(); // new source must be created + ClearTableData(); // new source must be created } void ScDPObject::SetImportDesc(const ScImportSourceDesc& rDesc) @@ -296,7 +296,7 @@ void ScDPObject::SetImportDesc(const ScImportSourceDesc& rDesc) delete pImpDesc; pImpDesc = new ScImportSourceDesc(rDesc); - ClearSource(); // new source must be created + ClearTableData(); // new source must be created } void ScDPObject::SetServiceData(const ScDPServiceDesc& rDesc) @@ -310,7 +310,7 @@ void ScDPObject::SetServiceData(const ScDPServiceDesc& rDesc) delete pServDesc; pServDesc = new ScDPServiceDesc(rDesc); - ClearSource(); // new source must be created + ClearTableData(); // new source must be created } void ScDPObject::WriteSourceDataTo( ScDPObject& rDest ) const @@ -485,7 +485,7 @@ void ScDPObject::CreateObjects() { // if groups are involved, create a new source with the ScDPGroupTableData if ( bSettingsChanged && pSaveData && pSaveData->GetExistingDimensionData() ) - ClearSource(); + ClearTableData(); if (!xSource.is()) { @@ -542,7 +542,7 @@ void ScDPObject::InvalidateData() bSettingsChanged = true; } -void ScDPObject::ClearSource() +void ScDPObject::ClearTableData() { Reference< XComponent > xObjectComp( xSource, UNO_QUERY ); if ( xObjectComp.is() ) diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index e560741a8785..d1644b4938b4 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -1324,7 +1324,7 @@ bool ScDBDocFunc::DataPilotUpdate( ScDPObject* pOldObj, const ScDPObject* pNewOb // (and re-read column entry collections) // so all changes take effect if ( pNewObj == pOldObj && pDestObj->IsImportData() ) - pDestObj->ClearSource(); + pDestObj->ClearTableData(); pDestObj->InvalidateData(); // before getting the new output area |