summaryrefslogtreecommitdiff
path: root/vcl/osx
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 /vcl/osx
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 'vcl/osx')
-rw-r--r--vcl/osx/DragSource.cxx10
-rw-r--r--vcl/osx/DragSource.hxx17
-rw-r--r--vcl/osx/DragSourceContext.cxx4
-rw-r--r--vcl/osx/DragSourceContext.hxx12
-rw-r--r--vcl/osx/DropTarget.cxx27
-rw-r--r--vcl/osx/DropTarget.hxx33
-rw-r--r--vcl/osx/OSXTransferable.cxx3
-rw-r--r--vcl/osx/OSXTransferable.hxx9
-rw-r--r--vcl/osx/a11ylistener.cxx4
-rw-r--r--vcl/osx/clipboard.cxx16
-rw-r--r--vcl/osx/clipboard.hxx29
-rw-r--r--vcl/osx/documentfocuslistener.cxx13
-rw-r--r--vcl/osx/documentfocuslistener.hxx21
13 files changed, 75 insertions, 123 deletions
diff --git a/vcl/osx/DragSource.cxx b/vcl/osx/DragSource.cxx
index d794d1fb808d..1a50d4fbc3db 100644
--- a/vcl/osx/DragSource.cxx
+++ b/vcl/osx/DragSource.cxx
@@ -158,7 +158,6 @@ DragSource::~DragSource()
}
void SAL_CALL DragSource::initialize(const Sequence< Any >& aArguments)
- throw(Exception, std::exception)
{
if (aArguments.getLength() < 2)
{
@@ -203,13 +202,11 @@ void SAL_CALL DragSource::initialize(const Sequence< Any >& aArguments)
}
sal_Bool SAL_CALL DragSource::isDragImageSupported( )
- throw(RuntimeException, std::exception)
{
return true;
}
sal_Int32 SAL_CALL DragSource::getDefaultCursor( sal_Int8 /*dragAction*/ )
- throw( IllegalArgumentException, RuntimeException, std::exception)
{
return 0;
}
@@ -220,7 +217,6 @@ void SAL_CALL DragSource::startDrag(const DragGestureEvent& trigger,
sal_Int32 /*image*/,
const uno::Reference<XTransferable >& transferable,
const uno::Reference<XDragSourceListener >& listener )
- throw( RuntimeException, std::exception)
{
MutexGuard guard(m_aMutex);
@@ -323,17 +319,17 @@ unsigned int DragSource::getSupportedDragOperations(bool isLocal) const
return srcActions;
}
-OUString SAL_CALL DragSource::getImplementationName( ) throw (RuntimeException, std::exception)
+OUString SAL_CALL DragSource::getImplementationName( )
{
return dragSource_getImplementationName();
}
-sal_Bool SAL_CALL DragSource::supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL DragSource::supportsService( const OUString& ServiceName )
{
return cppu::supportsService(this, ServiceName);
}
-Sequence< OUString > SAL_CALL DragSource::getSupportedServiceNames() throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL DragSource::getSupportedServiceNames()
{
return dragSource_getSupportedServiceNames();
}
diff --git a/vcl/osx/DragSource.hxx b/vcl/osx/DragSource.hxx
index 597e0728516e..9027ac455a7c 100644
--- a/vcl/osx/DragSource.hxx
+++ b/vcl/osx/DragSource.hxx
@@ -79,27 +79,24 @@ public:
DragSource& operator=(const DragSource&) = delete;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
- throw(css::uno::Exception, std::exception/*, css::uno::RuntimeException*/) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XDragSource
- virtual sal_Bool SAL_CALL isDragImageSupported( ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isDragImageSupported( ) override;
- virtual sal_Int32 SAL_CALL getDefaultCursor(sal_Int8 dragAction)
- throw(css::lang::IllegalArgumentException, css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getDefaultCursor(sal_Int8 dragAction) override;
virtual void SAL_CALL startDrag( const css::datatransfer::dnd::DragGestureEvent& trigger,
sal_Int8 sourceActions,
sal_Int32 cursor,
sal_Int32 image,
const css::uno::Reference< css::datatransfer::XTransferable >& transferable,
- const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener >& listener )
- throw(css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::datatransfer::dnd::XDragSourceListener >& listener ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
void saveMouseEvent(NSEvent* theEvent);
unsigned int getSupportedDragOperations(bool isLocal) const;
diff --git a/vcl/osx/DragSourceContext.cxx b/vcl/osx/DragSourceContext.cxx
index 319e969e8e99..253dc867d3de 100644
--- a/vcl/osx/DragSourceContext.cxx
+++ b/vcl/osx/DragSourceContext.cxx
@@ -36,23 +36,19 @@ DragSourceContext::~DragSourceContext()
}
sal_Int32 SAL_CALL DragSourceContext::getCurrentCursor( )
- throw( RuntimeException, std::exception)
{
return 0;
}
void SAL_CALL DragSourceContext::setCursor( sal_Int32 /*cursorId*/ )
- throw( RuntimeException, std::exception)
{
}
void SAL_CALL DragSourceContext::setImage( sal_Int32 /*imageId*/ )
- throw( RuntimeException, std::exception)
{
}
void SAL_CALL DragSourceContext::transferablesFlavorsChanged( )
- throw( RuntimeException, std::exception)
{
}
diff --git a/vcl/osx/DragSourceContext.hxx b/vcl/osx/DragSourceContext.hxx
index 833b7d1093ea..3ebeb362b4d9 100644
--- a/vcl/osx/DragSourceContext.hxx
+++ b/vcl/osx/DragSourceContext.hxx
@@ -39,17 +39,13 @@ public:
DragSourceContext(const DragSourceContext&) = delete;
DragSourceContext& operator=(const DragSourceContext&) = delete;
- virtual sal_Int32 SAL_CALL getCurrentCursor( )
- throw( css::uno::RuntimeException, std::exception) override;
+ virtual sal_Int32 SAL_CALL getCurrentCursor( ) override;
- virtual void SAL_CALL setCursor( sal_Int32 cursorId )
- throw( css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setCursor( sal_Int32 cursorId ) override;
- virtual void SAL_CALL setImage( sal_Int32 imageId )
- throw( css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setImage( sal_Int32 imageId ) override;
- virtual void SAL_CALL transferablesFlavorsChanged( )
- throw( css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL transferablesFlavorsChanged( ) override;
};
#endif // INCLUDED_VCL_OSX_DRAGSOURCECONTEXT_HXX
diff --git a/vcl/osx/DropTarget.cxx b/vcl/osx/DropTarget.cxx
index 2da380577f55..55f8fc732568 100644
--- a/vcl/osx/DropTarget.cxx
+++ b/vcl/osx/DropTarget.cxx
@@ -350,7 +350,6 @@ void SAL_CALL DropTarget::disposing()
}
void SAL_CALL DropTarget::initialize(const Sequence< Any >& aArguments)
- throw(Exception, std::exception)
{
if (aArguments.getLength() < 2)
{
@@ -387,59 +386,57 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
}
void SAL_CALL DropTarget::addDropTargetListener(const uno::Reference<XDropTargetListener>& dtl)
- throw(RuntimeException, std::exception)
{
rBHelper.addListener(cppu::UnoType<decltype(dtl)>::get(), dtl);
}
void SAL_CALL DropTarget::removeDropTargetListener(const uno::Reference<XDropTargetListener>& dtl)
- throw(RuntimeException, std::exception)
{
rBHelper.removeListener(cppu::UnoType<decltype(dtl)>::get(), dtl);
}
-sal_Bool SAL_CALL DropTarget::isActive( ) throw(RuntimeException, std::exception)
+sal_Bool SAL_CALL DropTarget::isActive( )
{
return mbActive;
}
-void SAL_CALL DropTarget::setActive(sal_Bool active) throw(RuntimeException, std::exception)
+void SAL_CALL DropTarget::setActive(sal_Bool active)
{
mbActive = active;
}
-sal_Int8 SAL_CALL DropTarget::getDefaultActions() throw(RuntimeException, std::exception)
+sal_Int8 SAL_CALL DropTarget::getDefaultActions()
{
return mDefaultActions;
}
-void SAL_CALL DropTarget::setDefaultActions(sal_Int8 actions) throw(RuntimeException, std::exception)
+void SAL_CALL DropTarget::setDefaultActions(sal_Int8 actions)
{
OSL_ENSURE( actions < 8, "No valid default actions");
mDefaultActions= actions;
}
-void SAL_CALL DropTarget::acceptDrag(sal_Int8 dragOperation) throw (RuntimeException, std::exception)
+void SAL_CALL DropTarget::acceptDrag(sal_Int8 dragOperation)
{
mSelectedDropAction = dragOperation;
}
-void SAL_CALL DropTarget::rejectDrag() throw (RuntimeException, std::exception)
+void SAL_CALL DropTarget::rejectDrag()
{
mSelectedDropAction = DNDConstants::ACTION_NONE;
}
-void SAL_CALL DropTarget::acceptDrop(sal_Int8 dropOperation) throw( RuntimeException, std::exception)
+void SAL_CALL DropTarget::acceptDrop(sal_Int8 dropOperation)
{
mSelectedDropAction = dropOperation;
}
-void SAL_CALL DropTarget::rejectDrop() throw (RuntimeException, std::exception)
+void SAL_CALL DropTarget::rejectDrop()
{
mSelectedDropAction = DNDConstants::ACTION_NONE;
}
-void SAL_CALL DropTarget::dropComplete(sal_Bool success) throw (RuntimeException, std::exception)
+void SAL_CALL DropTarget::dropComplete(sal_Bool success)
{
// Reset the internal transferable used as shortcut in case this is
// an internal D&D operation
@@ -529,17 +526,17 @@ void DropTarget::fire_dropActionChanged(const DropTargetDragEvent& dtde)
}
}
-OUString SAL_CALL DropTarget::getImplementationName() throw (RuntimeException, std::exception)
+OUString SAL_CALL DropTarget::getImplementationName()
{
return dropTarget_getImplementationName();
}
-sal_Bool SAL_CALL DropTarget::supportsService( const OUString& ServiceName ) throw (RuntimeException, std::exception)
+sal_Bool SAL_CALL DropTarget::supportsService( const OUString& ServiceName )
{
return cppu::supportsService(this, ServiceName);
}
-Sequence< OUString > SAL_CALL DropTarget::getSupportedServiceNames( ) throw (RuntimeException, std::exception)
+Sequence< OUString > SAL_CALL DropTarget::getSupportedServiceNames( )
{
return dropTarget_getSupportedServiceNames();
}
diff --git a/vcl/osx/DropTarget.hxx b/vcl/osx/DropTarget.hxx
index ef0c82b190fd..aafb6449599f 100644
--- a/vcl/osx/DropTarget.hxx
+++ b/vcl/osx/DropTarget.hxx
@@ -89,35 +89,32 @@ public:
virtual void SAL_CALL disposing() override;
// XInitialization
- virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments )
- throw(css::uno::Exception, std::exception) override;
+ virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
// XDropTarget
- virtual void SAL_CALL addDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& dtl )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL addDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& dtl ) override;
- virtual void SAL_CALL removeDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& dtl )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL removeDropTargetListener( const css::uno::Reference< css::datatransfer::dnd::XDropTargetListener >& dtl ) override;
// Default is not active
- virtual sal_Bool SAL_CALL isActive() throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setActive(sal_Bool isActive) throw(css::uno::RuntimeException, std::exception) override;
- virtual sal_Int8 SAL_CALL getDefaultActions() throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setDefaultActions(sal_Int8 actions) throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL isActive() override;
+ virtual void SAL_CALL setActive(sal_Bool isActive) override;
+ virtual sal_Int8 SAL_CALL getDefaultActions() override;
+ virtual void SAL_CALL setDefaultActions(sal_Int8 actions) override;
// XDropTargetDragContext
- virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) throw(css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL rejectDrag() throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL acceptDrag(sal_Int8 dragOperation) override;
+ virtual void SAL_CALL rejectDrag() override;
// XDropTargetDragContext
- virtual void SAL_CALL acceptDrop(sal_Int8 dropOperation) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL rejectDrop() throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL dropComplete(sal_Bool success) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL acceptDrop(sal_Int8 dropOperation) override;
+ virtual void SAL_CALL rejectDrop() override;
+ virtual void SAL_CALL dropComplete(sal_Bool success) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override;
- virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
+ virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
// NSDraggingDestination protocol functions
NSDragOperation draggingEntered(id sender);
diff --git a/vcl/osx/OSXTransferable.cxx b/vcl/osx/OSXTransferable.cxx
index df39c42206da..32fca10a00a6 100644
--- a/vcl/osx/OSXTransferable.cxx
+++ b/vcl/osx/OSXTransferable.cxx
@@ -96,7 +96,6 @@ OSXTransferable::~OSXTransferable()
}
Any SAL_CALL OSXTransferable::getTransferData( const DataFlavor& aFlavor )
- throw( UnsupportedFlavorException, IOException, RuntimeException, std::exception )
{
if (!isValidFlavor(aFlavor) || !isDataFlavorSupported(aFlavor))
{
@@ -132,13 +131,11 @@ Any SAL_CALL OSXTransferable::getTransferData( const DataFlavor& aFlavor )
}
Sequence< DataFlavor > SAL_CALL OSXTransferable::getTransferDataFlavors( )
- throw( RuntimeException, std::exception )
{
return mFlavorList;
}
sal_Bool SAL_CALL OSXTransferable::isDataFlavorSupported(const DataFlavor& aFlavor)
- throw( RuntimeException, std::exception )
{
for (sal_Int32 i = 0; i < mFlavorList.getLength(); i++)
if (compareDataFlavors(aFlavor, mFlavorList[i]))
diff --git a/vcl/osx/OSXTransferable.hxx b/vcl/osx/OSXTransferable.hxx
index 961c9cefe7a4..2e7056145dd1 100644
--- a/vcl/osx/OSXTransferable.hxx
+++ b/vcl/osx/OSXTransferable.hxx
@@ -47,14 +47,11 @@ public:
// XTransferable
- virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor )
- throw( css::datatransfer::UnsupportedFlavorException, css::io::IOException, css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Any SAL_CALL getTransferData( const css::datatransfer::DataFlavor& aFlavor ) override;
- virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Sequence< css::datatransfer::DataFlavor > SAL_CALL getTransferDataFlavors( ) override;
- virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Bool SAL_CALL isDataFlavorSupported( const css::datatransfer::DataFlavor& aFlavor ) override;
// Helper functions not part of the XTransferable interface
diff --git a/vcl/osx/a11ylistener.cxx b/vcl/osx/a11ylistener.cxx
index 1d56c1fafa25..018106fd9304 100644
--- a/vcl/osx/a11ylistener.cxx
+++ b/vcl/osx/a11ylistener.cxx
@@ -61,13 +61,13 @@ AquaA11yEventListener::~AquaA11yEventListener()
}
void SAL_CALL
-AquaA11yEventListener::disposing( const EventObject& ) throw( RuntimeException, std::exception )
+AquaA11yEventListener::disposing( const EventObject& )
{
[ AquaA11yFactory removeFromWrapperRepositoryFor: [ (AquaA11yWrapper *) m_wrapperObject accessibleContext ] ];
}
void SAL_CALL
-AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent ) throw( RuntimeException, std::exception )
+AquaA11yEventListener::notifyEvent( const AccessibleEventObject& aEvent )
{
NSString * notification = nil;
id element = m_wrapperObject;
diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx
index 6095a0123a70..20f5decb4809 100644
--- a/vcl/osx/clipboard.cxx
+++ b/vcl/osx/clipboard.cxx
@@ -140,7 +140,7 @@ AquaClipboard::~AquaClipboard()
[mPasteboard release];
}
-Reference<XTransferable> SAL_CALL AquaClipboard::getContents() throw(RuntimeException, std::exception)
+Reference<XTransferable> SAL_CALL AquaClipboard::getContents()
{
MutexGuard aGuard(m_aMutex);
@@ -158,7 +158,6 @@ Reference<XTransferable> SAL_CALL AquaClipboard::getContents() throw(RuntimeExce
void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransferable,
const Reference<XClipboardOwner>& xClipboardOwner)
- throw( RuntimeException, std::exception )
{
NSArray* types = xTransferable.is() ?
mpDataFlavorMapper->flavorSequenceToTypesArray(xTransferable->getTransferDataFlavors()) :
@@ -186,18 +185,17 @@ void SAL_CALL AquaClipboard::setContents(const Reference<XTransferable>& xTransf
fireClipboardChangedEvent();
}
-OUString SAL_CALL AquaClipboard::getName() throw( RuntimeException, std::exception )
+OUString SAL_CALL AquaClipboard::getName()
{
return OUString();
}
-sal_Int8 SAL_CALL AquaClipboard::getRenderingCapabilities() throw( RuntimeException, std::exception )
+sal_Int8 SAL_CALL AquaClipboard::getRenderingCapabilities()
{
return 0;
}
void SAL_CALL AquaClipboard::addClipboardListener(const Reference< XClipboardListener >& listener)
- throw( RuntimeException, std::exception )
{
MutexGuard aGuard(m_aMutex);
@@ -209,7 +207,6 @@ void SAL_CALL AquaClipboard::addClipboardListener(const Reference< XClipboardLis
}
void SAL_CALL AquaClipboard::removeClipboardListener(const Reference< XClipboardListener >& listener)
- throw( RuntimeException, std::exception )
{
MutexGuard aGuard(m_aMutex);
@@ -299,7 +296,6 @@ void AquaClipboard::provideDataForType(NSPasteboard* sender, const NSString* typ
}
void SAL_CALL AquaClipboard::flushClipboard()
- throw(RuntimeException, std::exception)
{
if (mXClipboardContent.is())
{
@@ -325,17 +321,17 @@ NSPasteboard* AquaClipboard::getPasteboard() const
return mPasteboard;
}
-OUString SAL_CALL AquaClipboard::getImplementationName() throw( RuntimeException, std::exception )
+OUString SAL_CALL AquaClipboard::getImplementationName()
{
return clipboard_getImplementationName();
}
-sal_Bool SAL_CALL AquaClipboard::supportsService( const OUString& ServiceName ) throw( RuntimeException, std::exception )
+sal_Bool SAL_CALL AquaClipboard::supportsService( const OUString& ServiceName )
{
return cppu::supportsService(this, ServiceName);
}
-Sequence< OUString > SAL_CALL AquaClipboard::getSupportedServiceNames() throw( RuntimeException, std::exception )
+Sequence< OUString > SAL_CALL AquaClipboard::getSupportedServiceNames()
{
return clipboard_getSupportedServiceNames();
}
diff --git a/vcl/osx/clipboard.hxx b/vcl/osx/clipboard.hxx
index 8a45c037b5b3..638eb4e7875b 100644
--- a/vcl/osx/clipboard.hxx
+++ b/vcl/osx/clipboard.hxx
@@ -87,43 +87,34 @@ public:
// XClipboard
- virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getContents()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual css::uno::Reference< css::datatransfer::XTransferable > SAL_CALL getContents() override;
virtual void SAL_CALL setContents( const css::uno::Reference< css::datatransfer::XTransferable >& xTransferable,
- const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner )
- throw( css::uno::RuntimeException, std::exception ) override;
+ const css::uno::Reference< css::datatransfer::clipboard::XClipboardOwner >& xClipboardOwner ) override;
- virtual OUString SAL_CALL getName()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual OUString SAL_CALL getName() override;
// XClipboardEx
- virtual sal_Int8 SAL_CALL getRenderingCapabilities()
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual sal_Int8 SAL_CALL getRenderingCapabilities() override;
// XClipboardNotifier
- virtual void SAL_CALL addClipboardListener( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL addClipboardListener( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
- virtual void SAL_CALL removeClipboardListener( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL removeClipboardListener( const css::uno::Reference< css::datatransfer::clipboard::XClipboardListener >& listener ) override;
// XFlushableClipboard
- virtual void SAL_CALL flushClipboard( ) throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL flushClipboard( ) override;
// XServiceInfo
- virtual OUString SAL_CALL getImplementationName()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getImplementationName() override;
- virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
- throw(css::uno::RuntimeException, std::exception) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
/* Get a reference to the used pastboard.
*/
diff --git a/vcl/osx/documentfocuslistener.cxx b/vcl/osx/documentfocuslistener.cxx
index 3fa2c0b5e03c..3c628d96d27f 100644
--- a/vcl/osx/documentfocuslistener.cxx
+++ b/vcl/osx/documentfocuslistener.cxx
@@ -36,7 +36,6 @@ DocumentFocusListener::DocumentFocusListener(AquaA11yFocusTracker& rTracker) :
void SAL_CALL
DocumentFocusListener::disposing( const EventObject& aEvent )
- throw (RuntimeException, std::exception)
{
// Unref the object here, but do not remove as listener since the object
// might no longer be in a state that safely allows this.
@@ -46,7 +45,6 @@ DocumentFocusListener::disposing( const EventObject& aEvent )
void SAL_CALL
DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
- throw( RuntimeException, std::exception )
{
try {
switch( aEvent.EventId )
@@ -92,7 +90,6 @@ DocumentFocusListener::notifyEvent( const AccessibleEventObject& aEvent )
}
Reference< XAccessible > DocumentFocusListener::getAccessible(const EventObject& aEvent )
- throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessible > xAccessible(aEvent.Source, UNO_QUERY);
@@ -118,7 +115,6 @@ Reference< XAccessible > DocumentFocusListener::getAccessible(const EventObject&
}
void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAccessible)
- throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessibleContext > xContext = xAccessible->getAccessibleContext();
@@ -129,7 +125,7 @@ void DocumentFocusListener::attachRecursive(const Reference< XAccessible >& xAcc
void DocumentFocusListener::attachRecursive(
const Reference< XAccessible >& xAccessible,
const Reference< XAccessibleContext >& xContext
-) throw (IndexOutOfBoundsException, RuntimeException)
+)
{
if( xContext.is() )
{
@@ -144,7 +140,7 @@ void DocumentFocusListener::attachRecursive(
const Reference< XAccessible >& xAccessible,
const Reference< XAccessibleContext >& xContext,
const Reference< XAccessibleStateSet >& xStateSet
-) throw (IndexOutOfBoundsException,RuntimeException)
+)
{
if( xStateSet->contains(AccessibleStateType::FOCUSED ) )
m_aFocusTracker.setFocusedObject( xAccessible );
@@ -172,7 +168,6 @@ void DocumentFocusListener::attachRecursive(
}
void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAccessible)
- throw (IndexOutOfBoundsException, RuntimeException)
{
Reference< XAccessibleContext > xContext = xAccessible->getAccessibleContext();
@@ -183,7 +178,7 @@ void DocumentFocusListener::detachRecursive(const Reference< XAccessible >& xAcc
void DocumentFocusListener::detachRecursive(
const Reference< XAccessible >& xAccessible,
const Reference< XAccessibleContext >& xContext
-) throw (IndexOutOfBoundsException, RuntimeException)
+)
{
Reference< XAccessibleStateSet > xStateSet = xContext->getAccessibleStateSet();
@@ -195,7 +190,7 @@ void DocumentFocusListener::detachRecursive(
const Reference< XAccessible >&,
const Reference< XAccessibleContext >& xContext,
const Reference< XAccessibleStateSet >& xStateSet
-) throw (IndexOutOfBoundsException, RuntimeException)
+)
{
Reference< XAccessibleEventBroadcaster > xBroadcaster =
Reference< XAccessibleEventBroadcaster >(xContext, UNO_QUERY);
diff --git a/vcl/osx/documentfocuslistener.hxx b/vcl/osx/documentfocuslistener.hxx
index 2a06b78cf282..f22f7e371305 100644
--- a/vcl/osx/documentfocuslistener.hxx
+++ b/vcl/osx/documentfocuslistener.hxx
@@ -41,14 +41,14 @@ public:
/// @throws css::uno::RuntimeException
void attachRecursive(
const css::uno::Reference< css::accessibility::XAccessible >& xAccessible
- ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
void attachRecursive(
const css::uno::Reference< css::accessibility::XAccessible >& xAccessible,
const css::uno::Reference< css::accessibility::XAccessibleContext >& xContext
- ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
@@ -56,20 +56,20 @@ public:
const css::uno::Reference< css::accessibility::XAccessible >& xAccessible,
const css::uno::Reference< css::accessibility::XAccessibleContext >& xContext,
const css::uno::Reference< css::accessibility::XAccessibleStateSet >& xStateSet
- ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
void detachRecursive(
const css::uno::Reference< css::accessibility::XAccessible >& xAccessible
- ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
void detachRecursive(
const css::uno::Reference< css::accessibility::XAccessible >& xAccessible,
const css::uno::Reference< css::accessibility::XAccessibleContext >& xContext
- ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
@@ -77,20 +77,17 @@ public:
const css::uno::Reference< css::accessibility::XAccessible >& xAccessible,
const css::uno::Reference< css::accessibility::XAccessibleContext >& xContext,
const css::uno::Reference< css::accessibility::XAccessibleStateSet >& xStateSet
- ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ );
/// @throws css::lang::IndexOutOfBoundsException
/// @throws css::uno::RuntimeException
- static css::uno::Reference< css::accessibility::XAccessible > getAccessible(const css::lang::EventObject& aEvent )
- throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException);
+ static css::uno::Reference< css::accessibility::XAccessible > getAccessible(const css::lang::EventObject& aEvent );
// XEventListener
- virtual void SAL_CALL disposing( const css::lang::EventObject& Source )
- throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
// XAccessibleEventListener
- virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent )
- throw( css::uno::RuntimeException, std::exception ) override;
+ virtual void SAL_CALL notifyEvent( const css::accessibility::AccessibleEventObject& aEvent ) override;
private:
std::set< css::uno::Reference< css::uno::XInterface > > m_aRefList;