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:
@@ -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: */
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
|
||||
|
||||
SwUndoFormatAttrHelper::SwUndoFormatAttrHelper(SwFormat& rFormat, bool bSvDrwPt)
|
||||
: SwClient(&rFormat)
|
||||
: sw::ClientBase<SwFormat>(&rFormat)
|
||||
, m_rFormat(rFormat)
|
||||
, m_bSaveDrawPt(bSvDrwPt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user