From 1bbdd21a9d569e52e41ec40fa6d5c697a4903374 Mon Sep 17 00:00:00 2001 From: ApurvR20 Date: Sat, 19 Sep 2026 21:27:59 +0530 Subject: [PATCH] tdf#164490 Use stronger typed SwClient Change-Id: I5a0104038656ad037feab3b2bb7c939afdb62a9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211229 Tested-by: Jenkins Reviewed-by: Hossein --- sw/source/core/attr/calbck.cxx | 1 + sw/source/core/inc/UndoAttribute.hxx | 2 +- sw/source/core/undo/unattr.cxx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sw/source/core/attr/calbck.cxx b/sw/source/core/attr/calbck.cxx index 06200a7c0f6a..75531f673eb3 100644 --- a/sw/source/core/attr/calbck.cxx +++ b/sw/source/core/attr/calbck.cxx @@ -307,6 +307,7 @@ void sw::ClientNotifyAttrChg(SwModify& rModify, const SwAttrSet& aSet, SwAttrSet } template class sw::ClientBase; +template class sw::ClientBase; template class sw::ClientBase; template bool SwModify::HasOnlySpecificWriterListeners() const; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sw/source/core/inc/UndoAttribute.hxx b/sw/source/core/inc/UndoAttribute.hxx index 8aab4092c027..65d8ae09bae6 100644 --- a/sw/source/core/inc/UndoAttribute.hxx +++ b/sw/source/core/inc/UndoAttribute.hxx @@ -163,7 +163,7 @@ public: }; // helper class to receive changed attribute sets -class SwUndoFormatAttrHelper final : public SwClient +class SwUndoFormatAttrHelper final : public sw::ClientBase { SwFormat& m_rFormat; std::unique_ptr m_pUndo; diff --git a/sw/source/core/undo/unattr.cxx b/sw/source/core/undo/unattr.cxx index e0ae8801f9a9..2594041cb4af 100644 --- a/sw/source/core/undo/unattr.cxx +++ b/sw/source/core/undo/unattr.cxx @@ -66,7 +66,7 @@ SwUndoFormatAttrHelper::SwUndoFormatAttrHelper(SwFormat& rFormat, bool bSvDrwPt) - : SwClient(&rFormat) + : sw::ClientBase(&rFormat) , m_rFormat(rFormat) , m_bSaveDrawPt(bSvDrwPt) {