diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 10:01:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 11:28:41 +0200 |
commit | 6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (patch) | |
tree | 87e8ccbbfc4d369e079098eb8be09abf988f1c44 /sw/inc/PostItMgr.hxx | |
parent | fc79f23922ccae8b494b31a5dd7bb4767e50c87e (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/inc/PostItMgr.hxx')
-rw-r--r-- | sw/inc/PostItMgr.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx index 89edc53e62f4..8a6330dcecb3 100644 --- a/sw/inc/PostItMgr.hxx +++ b/sw/inc/PostItMgr.hxx @@ -105,7 +105,7 @@ class SwNoteProps: public utl::ConfigItem pValues[0]>>=m_bIsShowAnchor; } - bool IsShowAnchor() + bool IsShowAnchor() const { return m_bIsShowAnchor; } @@ -192,7 +192,7 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr: public SfxListener bool ShowScrollbar(const unsigned long aPage) const; bool HasNotes() const ; bool ShowNotes() const; - bool IsShowAnchor() { return mbIsShowAnchor;} + bool IsShowAnchor() const { return mbIsShowAnchor;} unsigned long GetSidebarWidth(bool bPx = false) const; unsigned long GetSidebarBorderWidth(bool bPx = false) const; @@ -213,7 +213,7 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr: public SfxListener void Hide( const OUString& rAuthor ); void Hide(); void Show(); - void UpdateResolvedStatus(sw::annotation::SwAnnotationWin* topNote); + void UpdateResolvedStatus(const sw::annotation::SwAnnotationWin* topNote); void ShowHideResolvedNotes(bool visible); void Rescale(); @@ -257,7 +257,7 @@ class SAL_DLLPUBLIC_RTTI SwPostItMgr: public SfxListener void RegisterAnswer(OutlinerParaObject* pAnswer) { mpAnswer = pAnswer;} OutlinerParaObject* IsAnswer() {return mpAnswer;} void RegisterAnswerText(const OUString& aAnswerText) { maAnswerText = aAnswerText; } - const OUString& GetAnswerText() { return maAnswerText; } + const OUString& GetAnswerText() const { return maAnswerText; } void CheckMetaText(); sal_uInt16 Replace(SvxSearchItem const * pItem); |