[Libreoffice-commits] core.git: sw/source
Bjoern Michaelsen (via logerrit)
logerrit at kemper.freedesktop.org
Tue Nov 17 06:49:07 UTC 2020
sw/source/core/graphic/ndgrf.cxx | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
New commits:
commit c867cbaaac420ee9469230ccf21810ef0fb2c402
Author: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
AuthorDate: Mon Nov 16 21:01:31 2020 +0100
Commit: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
CommitDate: Tue Nov 17 07:48:27 2020 +0100
SwGrfNode: Replace needless SwClientNotifyCalls with CallSwClientNotify
Change-Id: Ib11b55cc800299947c1172ca47f84d3bc8833dea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105961
Tested-by: Jenkins
Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index 01ac5780e4a2..bac1994401e4 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -52,15 +52,6 @@
using namespace com::sun::star;
-
-namespace
-{
- void lcl_SwClientNotify(sw::BroadcastingModify& rModify, const SfxPoolItem& rOldNew)
- {
- const sw::LegacyModifyHint aHint(&rOldNew, &rOldNew);
- rModify.SwClientNotifyCall(rModify, aHint);
- }
-}
SwGrfNode::SwGrfNode(
const SwNodeIndex & rWhere,
const OUString& rGrfName,
@@ -273,7 +264,7 @@ bool SwGrfNode::ReRead(
if( bReadGrf && bNewGrf )
{
const SwUpdateAttr aHint(0,0,0);
- lcl_SwClientNotify(*this, aHint);
+ CallSwClientNotify(sw::LegacyModifyHint(&aHint, &aHint));
}
return bReadGrf;
@@ -491,7 +482,7 @@ bool SwGrfNode::SwapIn(bool bWaitForData)
maGrfObj.SetGraphic( Graphic() );
onGraphicChanged();
SwMsgPoolItem aMsgHint( RES_GRAPHIC_PIECE_ARRIVED );
- lcl_SwClientNotify(*this, aMsgHint);
+ CallSwClientNotify(sw::LegacyModifyHint(&aMsgHint, &aMsgHint));
}
}
else
@@ -861,7 +852,7 @@ void SwGrfNode::ApplyInputStream(
mbIsStreamReadOnly = bIsStreamReadOnly;
mbLinkedInputStreamReady = true;
SwMsgPoolItem aMsgHint( RES_LINKED_GRAPHIC_STREAM_ARRIVED );
- lcl_SwClientNotify(*this, aMsgHint);
+ CallSwClientNotify(sw::LegacyModifyHint(&aMsgHint, &aMsgHint));
}
}
}
More information about the Libreoffice-commits
mailing list