include/svl/cintitem.hxx |    6 +++---
 include/svl/eitem.hxx    |    4 ++--
 include/svl/intitem.hxx  |    4 ++--
 include/svl/metitem.hxx  |    2 +-
 include/svl/setitem.hxx  |    2 +-
 include/svl/stritem.hxx  |    2 +-
 include/svl/style.hxx    |    4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)

New commits:
commit d8abf67a64ce22acc2d9f97944900095d5608669
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Jul 28 12:41:15 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Jul 29 10:45:11 2025 +0200

    loplugin:finalmethods in svl
    
    Change-Id: I85360c67f167288cd7490cfefc4f8dc6da460a07
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188521
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Tested-by: Jenkins

diff --git a/include/svl/cintitem.hxx b/include/svl/cintitem.hxx
index 57644cd9c4e1..4f1742ac57e5 100644
--- a/include/svl/cintitem.hxx
+++ b/include/svl/cintitem.hxx
@@ -33,9 +33,9 @@ public:
     CntByteItem(sal_uInt16 which, sal_uInt8 nTheValue):
         SfxPoolItem(which), m_nValue(nTheValue) {}
 
-    virtual bool operator ==(const SfxPoolItem & rItem) const override;
+    virtual bool operator ==(const SfxPoolItem & rItem) const override final;
 
-    virtual bool supportsHashCode() const override;
+    virtual bool supportsHashCode() const override final;
     virtual size_t hashCode() const override final;
 
     virtual bool GetPresentation(SfxItemPresentation,
@@ -102,7 +102,7 @@ public:
         SfxPoolItem(which), m_nValue(nTheValue)
     {}
 
-    virtual bool operator ==(const SfxPoolItem & rItem) const override;
+    virtual bool operator ==(const SfxPoolItem & rItem) const override final;
 
     virtual bool supportsHashCode() const override final;
     virtual size_t hashCode() const override final;
diff --git a/include/svl/eitem.hxx b/include/svl/eitem.hxx
index 229979724059..382b8ffa5e4e 100644
--- a/include/svl/eitem.hxx
+++ b/include/svl/eitem.hxx
@@ -82,7 +82,7 @@ class SVL_DLLPUBLIC SfxBoolItem
     bool m_bValue;
 
 protected:
-    virtual ItemInstanceManager* getItemInstanceManager() const override;
+    virtual ItemInstanceManager* getItemInstanceManager() const override final;
 
 public:
     static SfxPoolItem* CreateDefault();
@@ -96,7 +96,7 @@ public:
     void SetValue(bool const bTheValue);
 
     // SfxPoolItem
-    virtual bool operator ==(const SfxPoolItem & rItem) const override;
+    virtual bool operator ==(const SfxPoolItem & rItem) const override final;
 
     virtual bool GetPresentation(SfxItemPresentation,
                                  MapUnit, MapUnit,
diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx
index d8452fef6c2f..777790995785 100644
--- a/include/svl/intitem.hxx
+++ b/include/svl/intitem.hxx
@@ -49,8 +49,8 @@ public:
     {}
 
     virtual bool operator ==(const SfxPoolItem & rItem) const override;
-    virtual bool supportsHashCode() const override { return true; }
-    virtual size_t hashCode() const override { return m_nValue; }
+    virtual bool supportsHashCode() const override final { return true; }
+    virtual size_t hashCode() const override final { return m_nValue; }
 
     virtual bool GetPresentation(SfxItemPresentation,
                                                 MapUnit, MapUnit,
diff --git a/include/svl/metitem.hxx b/include/svl/metitem.hxx
index 7b408fa60553..af452c5d75dd 100644
--- a/include/svl/metitem.hxx
+++ b/include/svl/metitem.hxx
@@ -29,7 +29,7 @@ public:
 
     virtual SfxItemType ItemType() const override = 0;
 
-    virtual void             ScaleMetrics( tools::Long lMult, tools::Long lDiv 
) override;
+    virtual void             ScaleMetrics( tools::Long lMult, tools::Long lDiv 
) override final;
     virtual bool             HasMetrics() const override;
 
 };
diff --git a/include/svl/setitem.hxx b/include/svl/setitem.hxx
index 219906f97f62..a2fabaacda43 100644
--- a/include/svl/setitem.hxx
+++ b/include/svl/setitem.hxx
@@ -36,7 +36,7 @@ public:
     SfxSetItem(sal_uInt16 nWhich, const SfxItemSet& rSet);
     SfxSetItem(const SfxSetItem&, SfxItemPool* pPool = nullptr);
 
-    virtual bool operator==(const SfxPoolItem&) const override;
+    virtual bool operator==(const SfxPoolItem&) const override final;
 
     virtual bool GetPresentation(SfxItemPresentation ePres, MapUnit 
eCoreMetric,
                                  MapUnit ePresMetric, OUString& rText,
diff --git a/include/svl/stritem.hxx b/include/svl/stritem.hxx
index 5708de213224..2a4e39a3c493 100644
--- a/include/svl/stritem.hxx
+++ b/include/svl/stritem.hxx
@@ -39,7 +39,7 @@ public:
     // Note that all the subclasses are currently marked as false since we 
haven't check them to
     // be safe under hashing
     virtual bool supportsHashCode() const override { return true; }
-    virtual size_t hashCode() const override { return m_aValue.hashCode(); }
+    virtual size_t hashCode() const override final { return 
m_aValue.hashCode(); }
 
     virtual bool GetPresentation(SfxItemPresentation,
                                  MapUnit, MapUnit,
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index 0144ddd125ed..305eb3a8c480 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -307,11 +307,11 @@ public:
 
     virtual void        Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) 
override;
 
-    virtual bool        isUsedByModel() const override;
+    virtual bool        isUsedByModel() const override final;
 
     virtual bool        SetParent( const OUString& ) override;
 
-    virtual bool        IsSfxStyleSheet() const override;
+    virtual bool        IsSfxStyleSheet() const override final;
 
 protected:
     virtual             ~SfxStyleSheet() override;

Reply via email to