summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.hxx
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/ww8/ww8par.hxx
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/ww8/ww8par.hxx')
-rw-r--r--sw/source/filter/ww8/ww8par.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/filter/ww8/ww8par.hxx b/sw/source/filter/ww8/ww8par.hxx
index f043d44b9a08..8d104eb0e45c 100644
--- a/sw/source/filter/ww8/ww8par.hxx
+++ b/sw/source/filter/ww8/ww8par.hxx
@@ -548,8 +548,8 @@ namespace sw
explicit Position(const SwPosition &rPos);
Position(const Position &rPos);
operator SwPosition() const;
- const SwNodeIndex& GetPtNode() { return maPtNode; };
- sal_Int32 GetPtContent() { return mnPtContent; };
+ const SwNodeIndex& GetPtNode() const { return maPtNode; };
+ sal_Int32 GetPtContent() const { return mnPtContent; };
};
}
}
@@ -571,11 +571,11 @@ class WW8FieldEntry
WW8FieldEntry &operator=(const WW8FieldEntry &rOther) throw();
void Swap(WW8FieldEntry &rOther) throw();
- SwNodeIndex GetPtNode() { return maStartPos.GetPtNode(); };
- sal_Int32 GetPtContent() { return maStartPos.GetPtContent(); };
+ SwNodeIndex GetPtNode() const { return maStartPos.GetPtNode(); };
+ sal_Int32 GetPtContent() const { return maStartPos.GetPtContent(); };
- const OUString& GetBookmarkName() { return msBookmarkName;}
- const OUString& GetBookmarkCode() { return msMarkCode;}
+ const OUString& GetBookmarkName() const { return msBookmarkName;}
+ const OUString& GetBookmarkCode() const { return msMarkCode;}
void SetBookmarkName(const OUString& bookmarkName);
void SetBookmarkType(const OUString& bookmarkType);
void SetBookmarkCode(const OUString& bookmarkCode);
@@ -1490,8 +1490,8 @@ private:
void SetAttributesAtGrfNode(SvxMSDffImportRec const* pRecord,
SwFrameFormat const *pFlyFormat, WW8_FSPA const *pF);
- bool IsDropCap();
- bool IsListOrDropcap() { return (!m_xCurrentItemSet || m_bDropCap); };
+ bool IsDropCap() const;
+ bool IsListOrDropcap() const { return (!m_xCurrentItemSet || m_bDropCap); };
//Apo == Absolutely Positioned Object, MSWord's old-style frames
std::unique_ptr<WW8FlyPara> ConstructApo(const ApoTestResults &rApo,