sw/inc/doc.hxx                 |    2 +-
 sw/source/core/doc/poolfmt.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 20faff1d46769a3c4150299b0b91d51bea4e543e
Author:     Caolán McNamara <[email protected]>
AuthorDate: Mon Jun 20 11:21:53 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Mon Jun 20 14:41:31 2022 +0200

    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 <[email protected]>

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 ||

Reply via email to