summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/dispatchcommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/dispatchcommand.cxx')
-rw-r--r--comphelper/source/misc/dispatchcommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/dispatchcommand.cxx b/comphelper/source/misc/dispatchcommand.cxx
index 5de05542dbb4..160c08a930c7 100644
--- a/comphelper/source/misc/dispatchcommand.cxx
+++ b/comphelper/source/misc/dispatchcommand.cxx
@@ -38,7 +38,7 @@ bool dispatchCommand(const OUString& rCommand, const css::uno::Sequence<css::bea
uno::Reference<frame::XFrame> xFrame(xDesktop->getActiveFrame());
if (!xFrame.is())
- xFrame = uno::Reference<frame::XFrame>(xDesktop, uno::UNO_QUERY);
+ xFrame.set(xDesktop, uno::UNO_QUERY);
uno::Reference<frame::XDispatchProvider> xDispatchProvider(xFrame, uno::UNO_QUERY);
if (!xDispatchProvider.is())