summaryrefslogtreecommitdiff
path: root/sw/source/core/swg
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-19 14:33:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-20 10:21:07 +0100
commit7d7d4cf217e82db8839dbc49dcab1ab72c203b4e (patch)
tree02bf7659d9bb3fce41a54407ea890313ad9d6a30 /sw/source/core/swg
parent6aecd49aa6de7c7f65c3c240ee3b7db36497df4d (diff)
loplugin:refcounting in sw
Change-Id: I56f2f5aa4d9105e93f28701b8352d1fb97829ead Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111215 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/swg')
-rw-r--r--sw/source/core/swg/SwXMLTextBlocks1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/swg/SwXMLTextBlocks1.cxx b/sw/source/core/swg/SwXMLTextBlocks1.cxx
index 75786448d64b..0297d68fa442 100644
--- a/sw/source/core/swg/SwXMLTextBlocks1.cxx
+++ b/sw/source/core/swg/SwXMLTextBlocks1.cxx
@@ -197,11 +197,10 @@ ErrCode SwXMLTextBlocks::GetMacroTable( sal_uInt16 nIdx,
// create descriptor and reference to it. Either
// both or neither must be kept because of the
// reference counting!
- SvMacroTableEventDescriptor* pDescriptor =
+ rtl::Reference<SvMacroTableEventDescriptor> pDescriptor =
new SvMacroTableEventDescriptor(aAutotextEvents);
- uno::Reference<XNameReplace> xReplace = pDescriptor;
Sequence<Any> aFilterArguments( 1 );
- aFilterArguments[0] <<= xReplace;
+ aFilterArguments[0] <<= uno::Reference<XNameReplace>(pDescriptor);
// get filter
OUString sFilterComponent = bOasis