[Libreoffice-commits] core.git: framework/source

Jan Holesovsky kendy at collabora.com
Thu May 19 06:37:19 UTC 2016


 framework/source/uielement/saveasmenucontroller.cxx |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

New commits:
commit 0a17332884db7a999df7190e674cfe2ecc0069c6
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Thu May 19 08:36:19 2016 +0200

    Fix unnecessary indent.
    
    Change-Id: Icf60f59e997afba28ac5115f7d7c4709a3f11a4a

diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx
index a69bb42..dd1566c 100644
--- a/framework/source/uielement/saveasmenucontroller.cxx
+++ b/framework/source/uielement/saveasmenucontroller.cxx
@@ -90,22 +90,24 @@ void SaveAsMenuController::impl_setPopupMenu()
     OUString sSaveAsTemplate(".uno:SaveAsTemplate");
     if (isCommandAvailable(sSaveAsTemplate))
         pVCLPopupMenu->InsertItem( sSaveAsTemplate, m_xFrame );
+
     OUString sSaveRemote(".uno:SaveAsRemote");
     if (isCommandAvailable(sSaveRemote))
         pVCLPopupMenu->InsertItem( sSaveRemote, m_xFrame );
 }
 
-bool SaveAsMenuController::isCommandAvailable(const OUString & sCommand) {
-        css::uno::Reference< css::frame::XDispatchProvider > xDispatchProvider( m_xFrame, css::uno::UNO_QUERY );
-        if ( !xDispatchProvider.is() )
-            return false;
+bool SaveAsMenuController::isCommandAvailable(const OUString & sCommand)
+{
+    uno::Reference<frame::XDispatchProvider> xDispatchProvider(m_xFrame, uno::UNO_QUERY);
+    if (!xDispatchProvider.is())
+        return false;
 
-        css::util::URL aTargetURL;
-        aTargetURL.Complete = sCommand;
-        m_xURLTransformer->parseStrict( aTargetURL );
+    util::URL aTargetURL;
+    aTargetURL.Complete = sCommand;
+    m_xURLTransformer->parseStrict(aTargetURL);
 
-        css::uno::Reference< css::frame::XDispatch > xDispatch( xDispatchProvider->queryDispatch( aTargetURL, OUString(), 0 ) );
-        return xDispatch.is();
+    uno::Reference<frame::XDispatch> xDispatch(xDispatchProvider->queryDispatch(aTargetURL, OUString(), 0));
+    return xDispatch.is();
 }
 
 // XStatusListener


More information about the Libreoffice-commits mailing list