summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-06-20 11:21:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-06-20 14:41:31 +0200
commit20faff1d46769a3c4150299b0b91d51bea4e543e (patch)
tree39696caa7b2617ff0ab48c999d22235a5acce4ce
parent843f33187740155db9e1d1e6638b403e4fdb0a59 (diff)
SwDoc::IsUsed(const SwNumRule&) can be const
Change-Id: I9966c2d71670d53375e27090e1ad3dffb780f81e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136143 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/inc/doc.hxx2
-rw-r--r--sw/source/core/doc/poolfmt.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 3b407440ed61..624686890850 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -853,7 +853,7 @@ public:
bool IsUsed( const sw::BroadcastingModify& ) const;
/// Query if table style is used.
bool IsUsed( const SwTableAutoFormat& ) const;
- bool IsUsed( const SwNumRule& );
+ bool IsUsed( const SwNumRule& ) const;
// Set name of newly loaded document template.
size_t SetDocPattern(const OUString& rPatternName);
diff --git a/sw/source/core/doc/poolfmt.cxx b/sw/source/core/doc/poolfmt.cxx
index d061db8735ed..a7788cd0f56a 100644
--- a/sw/source/core/doc/poolfmt.cxx
+++ b/sw/source/core/doc/poolfmt.cxx
@@ -106,7 +106,7 @@ bool SwDoc::IsUsed( const SwTableAutoFormat& rTableAutoFormat) const
}
// See if the NumRule is used
-bool SwDoc::IsUsed( const SwNumRule& rRule )
+bool SwDoc::IsUsed( const SwNumRule& rRule ) const
{
SwList const*const pList(getIDocumentListsAccess().getListByName(rRule.GetDefaultListId()));
bool bUsed = rRule.GetTextNodeListSize() > 0 ||