summaryrefslogtreecommitdiff
path: root/sc/inc/dpcachetable.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-02-28 18:14:22 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-02-28 18:14:22 -0500
commitd444d877a1023dec34859f9cf59039e81a638c4f (patch)
tree5e9457966073827d31a8a7bc699c29fab49995a7 /sc/inc/dpcachetable.hxx
parent633d352fb9979234d493e84ae50f4b0b6f3701e0 (diff)
Make sure nobody modifies the table cache outside of ScDPCacheTable.
Use const to ensure that nobody modifies the content of the table cache outside of ScDPCacheTable.
Diffstat (limited to 'sc/inc/dpcachetable.hxx')
-rw-r--r--sc/inc/dpcachetable.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/inc/dpcachetable.hxx b/sc/inc/dpcachetable.hxx
index 06eecef19763..eb0a7565e496 100644
--- a/sc/inc/dpcachetable.hxx
+++ b/sc/inc/dpcachetable.hxx
@@ -134,7 +134,7 @@ public:
sal_Int32 getRowSize() const;
sal_Int32 getColSize() const;
- ScDPTableDataCache* getCache() const;
+ const ScDPTableDataCache* getCache() const;
/** Fill the internal table from the cell range provided. This function
assumes that the first row is the column header. */
@@ -173,6 +173,7 @@ public:
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > >& rTabData,
const ::boost::unordered_set<sal_Int32>& rRepeatIfEmptyDims);
+ SCROW getOrder(long nDim, SCROW nIndex) const;
void clear();
bool empty() const;
@@ -180,6 +181,8 @@ private:
ScDPCacheTable();
ScDPCacheTable(const ScDPCacheTable&);
+ ScDPTableDataCache* getCache();
+
/**
* Check if a given row meets all specified criteria.
*