diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-12 14:09:32 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-12 21:56:34 -0500 |
commit | 33024ee9d07f4448b2ecdd6f27e0344072b2c0ea (patch) | |
tree | 8f01ed1c6633bf3eab297912cd6aa428b1b90c37 /sc/inc/dpsdbtab.hxx | |
parent | fdo#43077: Copy pivot tables when a sheet is copied. (diff) | |
download | core-33024ee9d07f4448b2ecdd6f27e0344072b2c0ea.tar.gz core-33024ee9d07f4448b2ecdd6f27e0344072b2c0ea.zip |
fdo#43077: Have cache instance keep track of who is referencing it.
With this change, ScDPCacheTable should never clear pointer to the
data cache instance; it should keep the same data cache instance that
it is instantiated with.
Diffstat (limited to 'sc/inc/dpsdbtab.hxx')
-rw-r--r-- | sc/inc/dpsdbtab.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/inc/dpsdbtab.hxx b/sc/inc/dpsdbtab.hxx index 87c3ccd1ec5c..8be0cb9904fc 100644 --- a/sc/inc/dpsdbtab.hxx +++ b/sc/inc/dpsdbtab.hxx @@ -38,6 +38,7 @@ class ScDPCacheTable; class ScDocument; +class ScDPCache; struct ScImportSourceDesc { @@ -69,8 +70,8 @@ private: const ScImportSourceDesc& mrImport; ScDPCacheTable aCacheTable; public: - ScDatabaseDPData(ScDocument* pDoc, const ScImportSourceDesc& rImport); - virtual ~ScDatabaseDPData(); + ScDatabaseDPData(ScDocument* pDoc, const ScImportSourceDesc& rImport, const ScDPCache* pCache); + virtual ~ScDatabaseDPData(); virtual long GetColumnCount(); virtual String getDimensionName(long nColumn); |