diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2022-09-24 19:28:17 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2022-09-25 10:42:33 +0200 |
commit | eea9f1ee27db98617871b9ecf80e9b3a62a4e723 (patch) | |
tree | 31c586cc335f2e32557016ccb5033b03fbe4cc40 /sw/source/core/txtnode/txtedt.cxx | |
parent | 79152891824581ad765dc8518150027c417bb9a2 (diff) |
unwrap SwInsText to a plain SfxHint
- also add some constnesss and move some things to private
Change-Id: I67a45e1326361b5a8f7e320b3525e74e93b1ef12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140556
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r-- | sw/source/core/txtnode/txtedt.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx index 97ae80b3d34e..30ea67277ab8 100644 --- a/sw/source/core/txtnode/txtedt.cxx +++ b/sw/source/core/txtnode/txtedt.cxx @@ -2014,10 +2014,11 @@ void SwTextNode::ReplaceTextOnly( sal_Int32 nPos, sal_Int32 nLen, Update(SwContentIndex(this, nMyOff), nLen - nMyOff, UpdateMode::Negative); // notify the layout! - CallSwClientNotify(sw::DeleteText(nPos, nTLen)); + const auto aDelHint = sw::DeleteText(nPos, nTLen); + CallSwClientNotify(aDelHint); - SwInsText const aHint(sw::MakeSwInsText(*this, nPos, nTLen)); - CallSwClientNotify(sw::LegacyModifyHint(nullptr, &aHint)); + const auto aInsHint = sw::MakeInsertText(*this, nPos, nTLen); + CallSwClientNotify(aInsHint); } // the return values allows us to see if we did the heavy- |