summaryrefslogtreecommitdiffstats
path: root/sc/inc/dpshttab.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-04-27 17:21:25 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-04-28 15:35:54 -0400
commit60f355127fb93d574e30e590158fe867148762ea (patch)
tree16ab3e42b9789d8fd118458071fca42771c16372 /sc/inc/dpshttab.hxx
parentFixed crash on load when loading doc with pivot table. (diff)
downloadcore-60f355127fb93d574e30e590158fe867148762ea.tar.gz
core-60f355127fb93d574e30e590158fe867148762ea.zip
Centrally manage cached grid data for data pilot tables.
This prevents cached data from getting re-generated everytime ScDPObject gets copied, which happens quite often. Without this, the performance of datapilot would really really suffer.
Diffstat (limited to 'sc/inc/dpshttab.hxx')
-rw-r--r--sc/inc/dpshttab.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx
index 9215ef107dfb..505a2758ae78 100644
--- a/sc/inc/dpshttab.hxx
+++ b/sc/inc/dpshttab.hxx
@@ -78,7 +78,7 @@ public:
const ScQueryParam& GetQueryParam() const;
bool operator== ( const ScSheetSourceDesc& rOther ) const;
- SC_DLLPUBLIC ScDPCache* CreateCache() const;
+ SC_DLLPUBLIC const ScDPCache* CreateCache() const;
/**
* Check the sanity of the data source range.
@@ -111,7 +111,7 @@ private:
ScDPCacheTable aCacheTable;
public:
- ScSheetDPData(ScDocument* pD, const ScSheetSourceDesc& rDesc, ScDPCache* pCache);
+ ScSheetDPData(ScDocument* pD, const ScSheetSourceDesc& rDesc, const ScDPCache* pCache);
virtual ~ScSheetDPData();
virtual long GetColumnCount();