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 /linguistic/source/dicimp.hxx | |
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 'linguistic/source/dicimp.hxx')
-rw-r--r-- | linguistic/source/dicimp.hxx | 78 |
1 files changed, 26 insertions, 52 deletions
diff --git a/linguistic/source/dicimp.hxx b/linguistic/source/dicimp.hxx index 9435dbae0750..6bc7e7853306 100644 --- a/linguistic/source/dicimp.hxx +++ b/linguistic/source/dicimp.hxx @@ -83,86 +83,60 @@ public: // XNamed virtual OUString SAL_CALL - getName() - throw(css::uno::RuntimeException, std::exception) override; + getName() override; virtual void SAL_CALL - setName( const OUString& aName ) - throw(css::uno::RuntimeException, std::exception) override; + setName( const OUString& aName ) override; // XDictionary virtual css::linguistic2::DictionaryType SAL_CALL - getDictionaryType() - throw(css::uno::RuntimeException, std::exception) override; + getDictionaryType() override; virtual void SAL_CALL - setActive( sal_Bool bActivate ) - throw(css::uno::RuntimeException, std::exception) override; + setActive( sal_Bool bActivate ) override; virtual sal_Bool SAL_CALL - isActive() - throw(css::uno::RuntimeException, std::exception) override; + isActive() override; virtual sal_Int32 SAL_CALL - getCount() - throw(css::uno::RuntimeException, std::exception) override; + getCount() override; virtual css::lang::Locale SAL_CALL - getLocale() - throw(css::uno::RuntimeException, std::exception) override; + getLocale() override; virtual void SAL_CALL - setLocale( const css::lang::Locale& aLocale ) - throw(css::uno::RuntimeException, std::exception) override; + setLocale( const css::lang::Locale& aLocale ) override; virtual css::uno::Reference< css::linguistic2::XDictionaryEntry > SAL_CALL - getEntry( const OUString& aWord ) - throw(css::uno::RuntimeException, std::exception) override; + getEntry( const OUString& aWord ) override; virtual sal_Bool SAL_CALL addEntry( const css::uno::Reference< - css::linguistic2::XDictionaryEntry >& xDicEntry ) - throw(css::uno::RuntimeException, std::exception) override; + css::linguistic2::XDictionaryEntry >& xDicEntry ) override; virtual sal_Bool SAL_CALL add( const OUString& aWord, sal_Bool bIsNegative, - const OUString& aRplcText ) - throw(css::uno::RuntimeException, std::exception) override; + const OUString& aRplcText ) override; virtual sal_Bool SAL_CALL - remove( const OUString& aWord ) - throw(css::uno::RuntimeException, std::exception) override; + remove( const OUString& aWord ) override; virtual sal_Bool SAL_CALL - isFull() - throw(css::uno::RuntimeException, std::exception) override; + isFull() override; virtual css::uno::Sequence< css::uno::Reference< css::linguistic2::XDictionaryEntry > > SAL_CALL - getEntries() - throw(css::uno::RuntimeException, std::exception) override; + getEntries() override; virtual void SAL_CALL - clear() - throw(css::uno::RuntimeException, std::exception) override; + clear() override; virtual sal_Bool SAL_CALL - addDictionaryEventListener( const css::uno::Reference< css::linguistic2::XDictionaryEventListener >& xListener ) - throw(css::uno::RuntimeException, std::exception) override; + addDictionaryEventListener( const css::uno::Reference< css::linguistic2::XDictionaryEventListener >& xListener ) override; virtual sal_Bool SAL_CALL - removeDictionaryEventListener( const css::uno::Reference< css::linguistic2::XDictionaryEventListener >& xListener ) - throw(css::uno::RuntimeException, std::exception) override; + removeDictionaryEventListener( const css::uno::Reference< css::linguistic2::XDictionaryEventListener >& xListener ) override; // XStorable virtual sal_Bool SAL_CALL - hasLocation() - throw(css::uno::RuntimeException, std::exception) override; + hasLocation() override; virtual OUString SAL_CALL - getLocation() - throw(css::uno::RuntimeException, std::exception) override; + getLocation() override; virtual sal_Bool SAL_CALL - isReadonly() - throw(css::uno::RuntimeException, std::exception) override; + isReadonly() override; virtual void SAL_CALL - store() - throw(css::io::IOException, - css::uno::RuntimeException, std::exception) override; + store() override; virtual void SAL_CALL storeAsURL( const OUString& aURL, - const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) - throw(css::io::IOException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) override; virtual void SAL_CALL storeToURL( const OUString& aURL, - const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) - throw(css::io::IOException, - css::uno::RuntimeException, std::exception) override; + const css::uno::Sequence< css::beans::PropertyValue >& aArgs ) override; }; @@ -188,11 +162,11 @@ public: // XDictionaryEntry virtual OUString SAL_CALL - getDictionaryWord() throw(css::uno::RuntimeException, std::exception) override; + getDictionaryWord() override; virtual sal_Bool SAL_CALL - isNegative() throw(css::uno::RuntimeException, std::exception) override; + isNegative() override; virtual OUString SAL_CALL - getReplacementText() throw(css::uno::RuntimeException, std::exception) override; + getReplacementText() override; }; |