summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2025-01-16 15:14:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2025-01-16 18:23:22 +0100
commit087604aa3c31e9e1586fa448edfc554b0131575d (patch)
tree3641592a766b8628e6a079db0a71f7e3f23c2374 /sw/inc
parent737dd3d412b57660c683972183a75e2c9cc666f2 (diff)
Simplify SwFormatLineBreak/SwXLineBreak interaction
No need to use BroadcastingModify here, both sides hold a pointer to a concrete class. And we only need to deal with destruction in one direction, because the other direction uses a weak reference. Change-Id: If15d515d83e695c92614c8335356ce2f32db8dcc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180353 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/formatlinebreak.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/inc/formatlinebreak.hxx b/sw/inc/formatlinebreak.hxx
index c7c16e5faded..7434e047b45e 100644
--- a/sw/inc/formatlinebreak.hxx
+++ b/sw/inc/formatlinebreak.hxx
@@ -44,7 +44,7 @@ enum class SwLineBreakClear
/// SfxPoolItem subclass that wraps an SwLineBreakClear.
class SW_DLLPUBLIC SwFormatLineBreak final : public SfxEnumItem<SwLineBreakClear>,
- public sw::BroadcastingModify
+ public SvtBroadcaster
{
/// The SwTextAttr that knows the position of the line break in the doc model.
SwTextLineBreak* m_pTextAttr;
@@ -66,9 +66,6 @@ public:
/// See SfxPoolItem::Clone().
SwFormatLineBreak* Clone(SfxItemPool* pPool = nullptr) const override;
- /// See SwModify::SwClientNotify().
- void SwClientNotify(const SwModify&, const SfxHint&) override;
-
sal_uInt16 GetValueCount() const override;
rtl::Reference<SwXTextRange> GetAnchor() const;