summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/macroloader.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 12:28:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 12:54:43 +0000
commite57ca02849c3d87142ff5ff9099a212e72b8139c (patch)
treebcce66b27261553c308779f3e8663a269ed3a671 /sfx2/source/appl/macroloader.cxx
parent8802ebd5172ec4bc412a59d136c82b77ab452281 (diff)
Remove dynamic exception specifications
...(for now, from LIBO_INTERNAL_CODE only). See the mail thread starting at <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html> "Dynamic Exception Specifications" for details. Most changes have been done automatically by the rewriting loplugin:dynexcspec (after enabling the rewriting mode, to be committed shortly). The way it only removes exception specs from declarations if it also sees a definition, it identified some dead declarations-w/o-definitions (that have been removed manually) and some cases where a definition appeared in multiple include files (which have also been cleaned up manually). There's also been cases of macro paramters (that were used to abstract over exception specs) that have become unused now (and been removed). Furthermore, some code needed to be cleaned up manually (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no configurations available that would actually build that code. Missing @throws documentation has not been applied in such manual clean-up. Change-Id: I3408691256c9b0c12bc5332de976743626e13960 Reviewed-on: https://gerrit.libreoffice.org/33574 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sfx2/source/appl/macroloader.cxx')
-rw-r--r--sfx2/source/appl/macroloader.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/sfx2/source/appl/macroloader.cxx b/sfx2/source/appl/macroloader.cxx
index 92ecab7313c7..19737c90b22a 100644
--- a/sfx2/source/appl/macroloader.cxx
+++ b/sfx2/source/appl/macroloader.cxx
@@ -48,7 +48,6 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::util;
SfxMacroLoader::SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArguments)
- throw (css::uno::Exception, css::uno::RuntimeException)
{
Reference < XFrame > xFrame;
if ( aArguments.getLength() )
@@ -59,19 +58,16 @@ SfxMacroLoader::SfxMacroLoader(const css::uno::Sequence< css::uno::Any >& aArgum
}
OUString SAL_CALL SfxMacroLoader::getImplementationName()
- throw (css::uno::RuntimeException, std::exception)
{
return OUString("com.sun.star.comp.sfx2.SfxMacroLoader");
}
sal_Bool SAL_CALL SfxMacroLoader::supportsService(OUString const & ServiceName)
- throw (css::uno::RuntimeException, std::exception)
{
return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence<OUString> SAL_CALL SfxMacroLoader::getSupportedServiceNames()
- throw (css::uno::RuntimeException, std::exception)
{
css::uno::Sequence< OUString > aSeq { "com.sun.star.frame.ProtocolHandler" };
return aSeq;
@@ -101,7 +97,7 @@ SfxObjectShell* SfxMacroLoader::GetObjectShell_Impl()
uno::Reference<frame::XDispatch> SAL_CALL SfxMacroLoader::queryDispatch(
const util::URL& aURL ,
const OUString& /*sTargetFrameName*/,
- sal_Int32 /*nSearchFlags*/ ) throw( uno::RuntimeException, std::exception )
+ sal_Int32 /*nSearchFlags*/ )
{
uno::Reference<frame::XDispatch> xDispatcher;
if(aURL.Complete.startsWith("macro:"))
@@ -112,7 +108,6 @@ uno::Reference<frame::XDispatch> SAL_CALL SfxMacroLoader::queryDispatch(
uno::Sequence< uno::Reference<frame::XDispatch> > SAL_CALL
SfxMacroLoader::queryDispatches( const uno::Sequence < frame::DispatchDescriptor >& seqDescriptor )
- throw( uno::RuntimeException, std::exception )
{
sal_Int32 nCount = seqDescriptor.getLength();
uno::Sequence< uno::Reference<frame::XDispatch> > lDispatcher(nCount);
@@ -127,7 +122,6 @@ uno::Sequence< uno::Reference<frame::XDispatch> > SAL_CALL
void SAL_CALL SfxMacroLoader::dispatchWithNotification(
const util::URL& aURL, const uno::Sequence<beans::PropertyValue>& /*lArgs*/,
const uno::Reference<frame::XDispatchResultListener>& xListener )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -151,7 +145,6 @@ void SAL_CALL SfxMacroLoader::dispatchWithNotification(
uno::Any SAL_CALL SfxMacroLoader::dispatchWithReturnValue(
const util::URL& aURL, const uno::Sequence<beans::PropertyValue>& )
- throw (uno::RuntimeException, std::exception)
{
uno::Any aRet;
loadMacro( aURL.Complete, aRet, GetObjectShell_Impl() );
@@ -160,7 +153,6 @@ uno::Any SAL_CALL SfxMacroLoader::dispatchWithReturnValue(
void SAL_CALL SfxMacroLoader::dispatch(
const util::URL& aURL, const uno::Sequence<beans::PropertyValue>& /*lArgs*/ )
- throw (uno::RuntimeException, std::exception)
{
SolarMutexGuard aGuard;
@@ -171,7 +163,6 @@ void SAL_CALL SfxMacroLoader::dispatch(
void SAL_CALL SfxMacroLoader::addStatusListener(
const uno::Reference< frame::XStatusListener >& ,
const util::URL& )
- throw (uno::RuntimeException, std::exception)
{
/* TODO
How we can handle different listener for further coming or currently running dispatch() jobs
@@ -183,12 +174,10 @@ void SAL_CALL SfxMacroLoader::addStatusListener(
void SAL_CALL SfxMacroLoader::removeStatusListener(
const uno::Reference< frame::XStatusListener >&,
const util::URL& )
- throw (uno::RuntimeException, std::exception)
{
}
ErrCode SfxMacroLoader::loadMacro( const OUString& rURL, css::uno::Any& rRetval, SfxObjectShell* pSh )
- throw ( ucb::ContentCreationException, uno::RuntimeException, std::exception )
{
#if !HAVE_FEATURE_SCRIPTING
(void) rURL;