summaryrefslogtreecommitdiff
path: root/svtools/source/misc/acceleratorexecute.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc/acceleratorexecute.cxx')
-rw-r--r--svtools/source/misc/acceleratorexecute.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/misc/acceleratorexecute.cxx b/svtools/source/misc/acceleratorexecute.cxx
index b8cd25a74ee8..181a1dc35c5d 100644
--- a/svtools/source/misc/acceleratorexecute.cxx
+++ b/svtools/source/misc/acceleratorexecute.cxx
@@ -40,7 +40,9 @@
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/lang/DisposedException.hpp>
+#include <com/sun/star/util/URLTransformer.hpp>
#include <toolkit/helper/vclunohelper.hxx>
+#include <comphelper/componentcontext.hxx>
#include <vcl/window.hxx>
#include <vcl/svapp.hxx>
@@ -448,8 +450,7 @@ css::uno::Reference< css::util::XURLTransformer > AcceleratorExecute::impl_ts_ge
// <- SAFE ----------------------------------
css::uno::Reference< css::util::XURLTransformer > xParser(
- xSMGR->createInstance(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.util.URLTransformer" ))),
- css::uno::UNO_QUERY_THROW);
+ css::util::URLTransformer::create( ::comphelper::ComponentContext(xSMGR).getUNOContext() ) );
// SAFE -> ----------------------------------
aLock.reset();