summaryrefslogtreecommitdiff
path: root/sw/source/core/swg
diff options
context:
space:
mode:
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