[Libreoffice-commits] core.git: sc/inc sc/source
Tamás Zolnai
tamas.zolnai at collabora.com
Mon Sep 26 20:52:47 UTC 2016
sc/inc/dpobject.hxx | 2 +-
sc/source/core/data/dpobject.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b905116dc41a4101e4e44d39d946bbba6a3a334d
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
Date: Tue Sep 27 06:35:30 2016 +0200
This parameter can be const.
Change-Id: Ia77b9bebb0653ce5d428956b4d2fca39461bb7c2
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 747bcfb..536e99b 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 302eea5..8e6411b 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)
{
More information about the Libreoffice-commits
mailing list