summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-03-26 15:02:12 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2020-03-26 15:43:14 +0100
commit5a94ac9eec4a63708262b2389aa2a434aa47112e (patch)
treece9da447ae68b96cf34d79fe07a5abf417a05b84 /sfx2
parent637df9463d0d901616a5d588c71da84a99b9cb42 (diff)
Drop intermediate temporary variable
Change-Id: I8b8cc27a5589dcf7efeb9cd8ffcc3bbbeeef8bd9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91117 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/dispatch.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index d703530ad23c..9b1d83891fae 100644
--- a/sfx2/source/control/dispatch.cxx
+++ b/sfx2/source/control/dispatch.cxx
@@ -219,11 +219,8 @@ void SfxDispatcher::Call_Impl(SfxShell& rShell, const SfxSlot &rSlot, SfxRequest
if ( GetFrame() )
{
// Recording may start
- css::uno::Reference< css::frame::XFrame > xFrame =
- GetFrame()->GetFrame().GetFrameInterface();
-
css::uno::Reference< css::beans::XPropertySet > xSet(
- xFrame,
+ GetFrame()->GetFrame().GetFrameInterface(),
css::uno::UNO_QUERY);
if ( xSet.is() )