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>
diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx
index d703530a..9b1d838 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() )