Kaydet (Commit) b905116d authored tarafından Tamás Zolnai's avatar Tamás Zolnai

This parameter can be const.

Change-Id: Ia77b9bebb0653ce5d428956b4d2fca39461bb7c2
üst 7fcefe28
...@@ -390,7 +390,7 @@ public: ...@@ -390,7 +390,7 @@ public:
void FreeTable(ScDPObject* pDPObj); void FreeTable(ScDPObject* pDPObj);
SC_DLLPUBLIC bool InsertNewTable(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 SheetCaches& GetSheetCaches();
SC_DLLPUBLIC const SheetCaches& GetSheetCaches() const; SC_DLLPUBLIC const SheetCaches& GetSheetCaches() const;
......
...@@ -3786,7 +3786,7 @@ bool ScDPCollection::InsertNewTable(ScDPObject* pDPObj) ...@@ -3786,7 +3786,7 @@ bool ScDPCollection::InsertNewTable(ScDPObject* pDPObj)
return true; return true;
} }
bool ScDPCollection::HasTable(ScDPObject* pDPObj) const bool ScDPCollection::HasTable(const ScDPObject* pDPObj) const
{ {
for (const std::unique_ptr<ScDPObject>& aTable : maTables) for (const std::unique_ptr<ScDPObject>& aTable : maTables)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment