summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-10-31 21:46:46 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-10-31 22:12:46 -0400
commit6a06befd20b01290a61e8157bd72c20eddcd15a0 (patch)
tree5990b982238d83f70239b39c714dc43e41386982 /sc/inc
parent8617c5a251ce725aa7c6743be28abd3db116255f (diff)
Since the cache there is never NULL, let's take a reference instead.
Change-Id: Idd3ca250ea51c9e17b4566febf13d9c8ca9c6a8f
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/dpcachetable.hxx4
-rw-r--r--sc/inc/dpsdbtab.hxx2
-rw-r--r--sc/inc/dpshttab.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/dpcachetable.hxx b/sc/inc/dpcachetable.hxx
index 0358e58db428..7fb6c649be6d 100644
--- a/sc/inc/dpcachetable.hxx
+++ b/sc/inc/dpcachetable.hxx
@@ -109,7 +109,7 @@ public:
Criterion();
};
- ScDPCacheTable(const ScDPCache* pCache);
+ ScDPCacheTable(const ScDPCache& rCache);
~ScDPCacheTable();
sal_Int32 getRowSize() const;
@@ -180,7 +180,7 @@ private:
/** Rows visible by page dimension filtering. */
RowFlagType maShowByPage;
- const ScDPCache* mpCache;
+ const ScDPCache& mrCache;
};
#endif
diff --git a/sc/inc/dpsdbtab.hxx b/sc/inc/dpsdbtab.hxx
index 943bf8d94179..87e6df61c3b3 100644
--- a/sc/inc/dpsdbtab.hxx
+++ b/sc/inc/dpsdbtab.hxx
@@ -70,7 +70,7 @@ class ScDatabaseDPData : public ScDPTableData
private:
ScDPCacheTable aCacheTable;
public:
- ScDatabaseDPData(ScDocument* pDoc, const ScDPCache* pCache);
+ ScDatabaseDPData(ScDocument* pDoc, const ScDPCache& rCache);
virtual ~ScDatabaseDPData();
virtual long GetColumnCount();
diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx
index 0374123f2c68..633207ab5e97 100644
--- a/sc/inc/dpshttab.hxx
+++ b/sc/inc/dpshttab.hxx
@@ -107,7 +107,7 @@ private:
ScDPCacheTable aCacheTable;
public:
- ScSheetDPData(ScDocument* pD, const ScSheetSourceDesc& rDesc, const ScDPCache* pCache);
+ ScSheetDPData(ScDocument* pD, const ScSheetSourceDesc& rDesc, const ScDPCache& rCache);
virtual ~ScSheetDPData();
virtual long GetColumnCount();