summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2025-02-06 14:35:12 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2025-02-07 12:53:35 +0100
commit9b81a98953536b3a958038770e3df3e4bf66a128 (patch)
tree56cc20b1624222e55e4de4e7d2e85c5ffc1a31d8 /svx
parent4fd0d6a2e4891bd22fb991a4342faf875780962b (diff)
Introduce loplugin:mustoverride
...to find derived classes that do not directly override SfxPoolItem::ItemType. Most of the cases that the plugin flagged were classes that are apparently not meant to be instantiated themselves (so I added pure virtual overrides there), but SdrMeasureFormatStringItem appears to genuinely have missed it DECLARE_ITEM_TYPE_FUNCTION stanza. Change-Id: Iec40080377f26cc4fa2c8cff735d5f0d3bd60509 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181211 Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com> Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/sxmfsitm.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/inc/sxmfsitm.hxx b/svx/inc/sxmfsitm.hxx
index 56422bcc4018..3f670822c1e1 100644
--- a/svx/inc/sxmfsitm.hxx
+++ b/svx/inc/sxmfsitm.hxx
@@ -27,6 +27,7 @@ class SdrMeasureFormatStringItem final : public SfxStringItem {
public:
SdrMeasureFormatStringItem()
: SfxStringItem(SDRATTR_MEASUREFORMATSTRING) {}
+ DECLARE_ITEM_TYPE_FUNCTION(SdrMeasureFormatStringItem)
virtual SdrMeasureFormatStringItem* Clone(SfxItemPool*) const override
{
return new SdrMeasureFormatStringItem(*this);