diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:28:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 12:54:43 +0000 |
commit | e57ca02849c3d87142ff5ff9099a212e72b8139c (patch) | |
tree | bcce66b27261553c308779f3e8663a269ed3a671 /vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | |
parent | 8802ebd5172ec4bc412a59d136c82b77ab452281 (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/unx/gtk/fpicker/SalGtkFilePicker.cxx')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx index b31cc783c8d5..541f640484d2 100644 --- a/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx +++ b/vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx @@ -281,7 +281,6 @@ SalGtkFilePicker::SalGtkFilePicker( const uno::Reference< uno::XComponentContext // XFilePickerNotifier void SAL_CALL SalGtkFilePicker::addFilePickerListener( const uno::Reference<XFilePickerListener>& xListener ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -291,7 +290,6 @@ void SAL_CALL SalGtkFilePicker::addFilePickerListener( const uno::Reference<XFil } void SAL_CALL SalGtkFilePicker::removeFilePickerListener( const uno::Reference<XFilePickerListener>& ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -525,7 +523,6 @@ void SalGtkFilePicker::ensureFilterList( const OUString& _rInitialCurrentFilter } void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUString& aFilter ) - throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -542,7 +539,6 @@ void SAL_CALL SalGtkFilePicker::appendFilter( const OUString& aTitle, const OUSt } void SAL_CALL SalGtkFilePicker::setCurrentFilter( const OUString& aTitle ) - throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -601,7 +597,7 @@ void SalGtkFilePicker::UpdateFilterfromUI() } } -OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() throw( uno::RuntimeException, std::exception ) +OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() { SolarMutexGuard g; @@ -615,7 +611,6 @@ OUString SAL_CALL SalGtkFilePicker::getCurrentFilter() throw( uno::RuntimeExcept // XFilterGroupManager functions void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle*/, const uno::Sequence<beans::StringPair>& aFilters ) - throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -644,7 +639,7 @@ void SAL_CALL SalGtkFilePicker::appendFilterGroup( const OUString& /*sGroupTitle // XFilePicker functions -void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( uno::RuntimeException, std::exception ) +void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) { SolarMutexGuard g; @@ -654,7 +649,6 @@ void SAL_CALL SalGtkFilePicker::setMultiSelectionMode( sal_Bool bMode ) throw( u } void SAL_CALL SalGtkFilePicker::setDefaultName( const OUString& aName ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -669,21 +663,20 @@ void SAL_CALL SalGtkFilePicker::setDefaultName( const OUString& aName ) } void SAL_CALL SalGtkFilePicker::setDisplayDirectory( const OUString& rDirectory ) - throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { SolarMutexGuard g; implsetDisplayDirectory(rDirectory); } -OUString SAL_CALL SalGtkFilePicker::getDisplayDirectory() throw( uno::RuntimeException, std::exception ) +OUString SAL_CALL SalGtkFilePicker::getDisplayDirectory() { SolarMutexGuard g; return implgetDisplayDirectory(); } -uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getFiles() throw( uno::RuntimeException, std::exception ) +uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getFiles() { // no member access => no mutex needed @@ -716,7 +709,7 @@ bool lcl_matchFilter( const rtl::OUString& rFilter, const rtl::OUString& rExt ) } -uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw( uno::RuntimeException, std::exception ) +uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() { SolarMutexGuard g; @@ -863,14 +856,14 @@ uno::Sequence<OUString> SAL_CALL SalGtkFilePicker::getSelectedFiles() throw( uno // XExecutableDialog functions -void SAL_CALL SalGtkFilePicker::setTitle( const OUString& rTitle ) throw( uno::RuntimeException, std::exception ) +void SAL_CALL SalGtkFilePicker::setTitle( const OUString& rTitle ) { SolarMutexGuard g; implsetTitle(rTitle); } -sal_Int16 SAL_CALL SalGtkFilePicker::execute() throw( uno::RuntimeException, std::exception ) +sal_Int16 SAL_CALL SalGtkFilePicker::execute() { SolarMutexGuard g; @@ -1235,7 +1228,6 @@ uno::Any SalGtkFilePicker::HandleGetListValue(GtkComboBox *pWidget, sal_Int16 nC } void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nControlAction, const uno::Any& rValue ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -1261,7 +1253,6 @@ void SAL_CALL SalGtkFilePicker::setValue( sal_Int16 nControlId, sal_Int16 nContr } uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nControlAction ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -1285,7 +1276,6 @@ uno::Any SAL_CALL SalGtkFilePicker::getValue( sal_Int16 nControlId, sal_Int16 nC } void SAL_CALL SalGtkFilePicker::enableControl( sal_Int16 nControlId, sal_Bool bEnable ) -throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -1309,7 +1299,6 @@ throw( uno::RuntimeException, std::exception ) } void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString& rLabel ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -1346,7 +1335,6 @@ void SAL_CALL SalGtkFilePicker::setLabel( sal_Int16 nControlId, const OUString& } OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId ) - throw( uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -1368,7 +1356,7 @@ OUString SAL_CALL SalGtkFilePicker::getLabel( sal_Int16 nControlId ) // XFilePreview functions -uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() throw( uno::RuntimeException, std::exception ) +uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() { SolarMutexGuard g; @@ -1378,7 +1366,7 @@ uno::Sequence<sal_Int16> SAL_CALL SalGtkFilePicker::getSupportedImageFormats() t return uno::Sequence<sal_Int16>(); } -sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() throw( uno::RuntimeException, std::exception ) +sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() { SolarMutexGuard g; @@ -1388,7 +1376,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getTargetColorDepth() throw( uno::RuntimeEx return 0; } -sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth() throw( uno::RuntimeException, std::exception ) +sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth() { SolarMutexGuard g; @@ -1397,7 +1385,7 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableWidth() throw( uno::RuntimeExce return m_PreviewImageWidth; } -sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight() throw( uno::RuntimeException, std::exception ) +sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight() { SolarMutexGuard g; @@ -1407,7 +1395,6 @@ sal_Int32 SAL_CALL SalGtkFilePicker::getAvailableHeight() throw( uno::RuntimeExc } void SAL_CALL SalGtkFilePicker::setImage( sal_Int16 /*aImageFormat*/, const uno::Any& /*aImage*/ ) - throw( lang::IllegalArgumentException, uno::RuntimeException, std::exception ) { SolarMutexGuard g; @@ -1507,7 +1494,7 @@ void SalGtkFilePicker::update_preview_cb( GtkFileChooser *file_chooser, SalGtkFi g_free( filename ); } -sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState ) throw( uno::RuntimeException, std::exception ) +sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState ) { SolarMutexGuard g; @@ -1541,7 +1528,7 @@ sal_Bool SAL_CALL SalGtkFilePicker::setShowState( sal_Bool bShowState ) throw( u return true; } -sal_Bool SAL_CALL SalGtkFilePicker::getShowState() throw( uno::RuntimeException, std::exception ) +sal_Bool SAL_CALL SalGtkFilePicker::getShowState() { SolarMutexGuard g; @@ -1553,7 +1540,6 @@ sal_Bool SAL_CALL SalGtkFilePicker::getShowState() throw( uno::RuntimeException, // XInitialization void SAL_CALL SalGtkFilePicker::initialize( const uno::Sequence<uno::Any>& aArguments ) - throw( uno::Exception, uno::RuntimeException, std::exception ) { // parameter checking uno::Any aAny; @@ -1721,7 +1707,7 @@ void SalGtkFilePicker::preview_toggled_cb( GObject *cb, SalGtkFilePicker* pobjFP // XCancellable -void SAL_CALL SalGtkFilePicker::cancel() throw( uno::RuntimeException, std::exception ) +void SAL_CALL SalGtkFilePicker::cancel() { SolarMutexGuard g; |