diff options
author | Jan Holesovsky <kendy@collabora.com> | 2016-05-19 08:36:19 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2016-05-19 08:36:19 +0200 |
commit | 0a17332884db7a999df7190e674cfe2ecc0069c6 (patch) | |
tree | a339b9883a32e7863f86f868d3a9a7d7b57320c8 | |
parent | 53e6e3242066d821d48bffb7c53b6aae51fbeb24 (diff) |
Fix unnecessary indent.
Change-Id: Icf60f59e997afba28ac5115f7d7c4709a3f11a4a
-rw-r--r-- | framework/source/uielement/saveasmenucontroller.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/framework/source/uielement/saveasmenucontroller.cxx b/framework/source/uielement/saveasmenucontroller.cxx index a69bb42e5374..dd1566c932df 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 |