summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/thints.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-01-05 10:49:45 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-05 12:23:16 +0100
commitd988b0cdeb54d84a0347a036a277c21c12544ab9 (patch)
tree7c24b2034fb4169cd0e924dff91a4c6e3032c0ba /sw/source/core/txtnode/thints.cxx
parent2407f8aca45a3fde5a0c6808d62a0435ff1de565 (diff)
Revert "NotifyClients no more"
This reverts commit 96bafa464ebdbce3ef04bec9beae5e745bb37794. It started to cause an ASan heap-use-after-free during CppunitTest_sw_uiwriter, see the comments starting at <https://gerrit.libreoffice.org/c/core/+/108604/ 5#message-681a6100cff11cb51d20e5a2b2fb38da1f92ab32> "NotifyClients no more". Change-Id: Id0eef2e75ea047d4b337c51df929eea81fb69f5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108717 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source/core/txtnode/thints.cxx')
-rw-r--r--sw/source/core/txtnode/thints.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 6052754c8b46..a5626e71f053 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -1709,7 +1709,7 @@ void SwTextNode::DeleteAttribute( SwTextAttr * const pAttr )
m_pSwpHints->Delete( pAttr );
SwTextAttr::Destroy( pAttr, GetDoc().GetAttrPool() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
TryDeleteSwpHints();
}
@@ -1785,7 +1785,7 @@ void SwTextNode::DeleteAttributes(
m_pSwpHints->DeleteAtPos( nPos );
SwTextAttr::Destroy( pTextHt, GetDoc().GetAttrPool() );
- CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint));
+ NotifyClients( nullptr, &aHint );
}
}
}
@@ -2586,7 +2586,7 @@ void SwTextNode::FormatToTextAttr( SwTextNode* pNd )
if( aNdSet.Count() )
{
SwFormatChg aTmp1( pNd->GetFormatColl() );
- pNd->CallSwClientNotify(sw::LegacyModifyHint(&aTmp1, &aTmp1));
+ pNd->NotifyClients( &aTmp1, &aTmp1 );
}
}
}