summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2016-09-27 06:35:30 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2016-09-27 06:36:08 +0200
commitb905116dc41a4101e4e44d39d946bbba6a3a334d (patch)
tree0c3dce942b3c68f9ec83a5fe6fb185307c593705 /sc
parent7fcefe280a5960ef6f56b46a7aeac8e1295850f2 (diff)
This parameter can be const.
Change-Id: Ia77b9bebb0653ce5d428956b4d2fca39461bb7c2
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/dpobject.hxx2
-rw-r--r--sc/source/core/data/dpobject.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 747bcfbac18c..536e99b169f4 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -390,7 +390,7 @@ public:
void FreeTable(ScDPObject* pDPObj);
SC_DLLPUBLIC bool InsertNewTable(ScDPObject* pDPObj);
- bool HasTable(ScDPObject* pDPObj) const;
+ bool HasTable(const ScDPObject* pDPObj) const;
SC_DLLPUBLIC SheetCaches& GetSheetCaches();
SC_DLLPUBLIC const SheetCaches& GetSheetCaches() const;
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 302eea5bcbfa..8e6411b96e2f 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -3786,7 +3786,7 @@ bool ScDPCollection::InsertNewTable(ScDPObject* pDPObj)
return true;
}
-bool ScDPCollection::HasTable(ScDPObject* pDPObj) const
+bool ScDPCollection::HasTable(const ScDPObject* pDPObj) const
{
for (const std::unique_ptr<ScDPObject>& aTable : maTables)
{