tdf#164490 Use stronger typed SwClient

Change-Id: I5a0104038656ad037feab3b2bb7c939afdb62a9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211229
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
ApurvR20
2026-09-24 23:27:29 +02:00
committed by Hossein
parent d1473c1738
commit 1bbdd21a9d
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -307,6 +307,7 @@ void sw::ClientNotifyAttrChg(SwModify& rModify, const SwAttrSet& aSet, SwAttrSet
}
template class sw::ClientBase<SwModify>;
template class sw::ClientBase<SwFormat>;
template class sw::ClientBase<SwFrameFormat>;
template bool SwModify::HasOnlySpecificWriterListeners<SwFrame>() const;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+1 -1
View File
@@ -163,7 +163,7 @@ public:
};
// helper class to receive changed attribute sets
class SwUndoFormatAttrHelper final : public SwClient
class SwUndoFormatAttrHelper final : public sw::ClientBase<SwFormat>
{
SwFormat& m_rFormat;
std::unique_ptr<SwUndoFormatAttr> m_pUndo;
+1 -1
View File
@@ -66,7 +66,7 @@
SwUndoFormatAttrHelper::SwUndoFormatAttrHelper(SwFormat& rFormat, bool bSvDrwPt)
: SwClient(&rFormat)
: sw::ClientBase<SwFormat>(&rFormat)
, m_rFormat(rFormat)
, m_bSaveDrawPt(bSvDrwPt)
{