summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 10:01:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 11:28:41 +0200
commit6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (patch)
tree87e8ccbbfc4d369e079098eb8be09abf988f1c44 /sw/source/filter/xml
parentfc79f23922ccae8b494b31a5dd7bb4767e50c87e (diff)
loplugin:constmethod in sw
Change-Id: I73c3c6d2165287d2d581a04b23b1d3b48166a488 Reviewed-on: https://gerrit.libreoffice.org/79780 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml')
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.cxx6
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.hxx2
-rw-r--r--sw/source/filter/xml/xmltbli.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index 748df90325ef..bfd4e488fcb8 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -101,7 +101,7 @@ public:
void CopyPositionInto(SwPosition& rPos, SwDoc & rDoc);
SwDoc* GetDoc();
- bool IsValid();
+ bool IsValid() const;
};
XTextRangeOrNodeIndexPosition::XTextRangeOrNodeIndexPosition()
@@ -171,7 +171,7 @@ SwDoc* XTextRangeOrNodeIndexPosition::GetDoc()
return (nullptr != pIndex) ? pIndex->GetNodes().GetDoc() : lcl_GetDocViaTunnel(xRange);
}
-bool XTextRangeOrNodeIndexPosition::IsValid()
+bool XTextRangeOrNodeIndexPosition::IsValid() const
{
return ( xRange.is() || (pIndex != nullptr) );
}
@@ -562,7 +562,7 @@ void XMLRedlineImportHelper::AdjustStartNodeCursor(
// else: can't find redline -> ignore
}
-inline bool XMLRedlineImportHelper::IsReady(RedlineInfo* pRedline)
+inline bool XMLRedlineImportHelper::IsReady(const RedlineInfo* pRedline)
{
// we can insert a redline if we have start & end, and we don't
// expect adjustments for either of these
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.hxx b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
index 3a7e684c5ea9..2c6d2397b11c 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.hxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.hxx
@@ -117,7 +117,7 @@ public:
private:
- static inline bool IsReady(RedlineInfo* pRedline);
+ static inline bool IsReady(const RedlineInfo* pRedline);
void InsertIntoDocument(RedlineInfo* pRedline);
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index d5fcebe1667c..3f6fff362ff6 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -1028,7 +1028,7 @@ public:
OUString& GetDDEApplication() { return sDDEApplication; }
OUString& GetDDEItem() { return sDDEItem; }
OUString& GetDDETopic() { return sDDETopic; }
- bool GetIsAutomaticUpdate() { return bIsAutomaticUpdate; }
+ bool GetIsAutomaticUpdate() const { return bIsAutomaticUpdate; }
};