summaryrefslogtreecommitdiff
path: root/include/linguistic
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 /include/linguistic
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 'include/linguistic')
-rw-r--r--include/linguistic/hyphdta.hxx30
-rw-r--r--include/linguistic/lngprophelp.hxx33
-rw-r--r--include/linguistic/misc.hxx6
-rw-r--r--include/linguistic/spelldta.hxx14
4 files changed, 31 insertions, 52 deletions
diff --git a/include/linguistic/hyphdta.hxx b/include/linguistic/hyphdta.hxx
index 2c7479bbc423..3fe0c76d4b69 100644
--- a/include/linguistic/hyphdta.hxx
+++ b/include/linguistic/hyphdta.hxx
@@ -48,23 +48,17 @@ public:
// XHyphenatedWord
virtual OUString SAL_CALL
- getWord()
- throw(css::uno::RuntimeException, std::exception) override;
+ getWord() override;
virtual css::lang::Locale SAL_CALL
- getLocale()
- throw(css::uno::RuntimeException, std::exception) override;
+ getLocale() override;
virtual sal_Int16 SAL_CALL
- getHyphenationPos()
- throw(css::uno::RuntimeException, std::exception) override;
+ getHyphenationPos() override;
virtual OUString SAL_CALL
- getHyphenatedWord()
- throw(css::uno::RuntimeException, std::exception) override;
+ getHyphenatedWord() override;
virtual sal_Int16 SAL_CALL
- getHyphenPos()
- throw(css::uno::RuntimeException, std::exception) override;
+ getHyphenPos() override;
virtual sal_Bool SAL_CALL
- isAlternativeSpelling()
- throw(css::uno::RuntimeException, std::exception) override;
+ isAlternativeSpelling() override;
static css::uno::Reference <css::linguistic2::XHyphenatedWord> LNG_DLLPUBLIC CreateHyphenatedWord(
const OUString &rWord, sal_Int16 nLang, sal_Int16 nHyphenationPos,
@@ -94,17 +88,13 @@ public:
// XPossibleHyphens
virtual OUString SAL_CALL
- getWord()
- throw(css::uno::RuntimeException, std::exception) override;
+ getWord() override;
virtual css::lang::Locale SAL_CALL
- getLocale()
- throw(css::uno::RuntimeException, std::exception) override;
+ getLocale() override;
virtual OUString SAL_CALL
- getPossibleHyphens()
- throw(css::uno::RuntimeException, std::exception) override;
+ getPossibleHyphens() override;
virtual css::uno::Sequence< sal_Int16 > SAL_CALL
- getHyphenationPositions()
- throw(css::uno::RuntimeException, std::exception) override;
+ getHyphenationPositions() override;
static css::uno::Reference < css::linguistic2::XPossibleHyphens > LNG_DLLPUBLIC CreatePossibleHyphens
(const OUString &rWord, sal_Int16 nLang,
diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx
index 7f97c516ca4f..065a1c920ff9 100644
--- a/include/linguistic/lngprophelp.hxx
+++ b/include/linguistic/lngprophelp.hxx
@@ -101,23 +101,19 @@ public:
// XEventListener
virtual void SAL_CALL
- disposing( const css::lang::EventObject& rSource )
- throw(css::uno::RuntimeException, std::exception) override;
+ disposing( const css::lang::EventObject& rSource ) override;
// XPropertyChangeListener
virtual void SAL_CALL
- propertyChange( const css::beans::PropertyChangeEvent& rEvt )
- throw(css::uno::RuntimeException, std::exception) override;
+ propertyChange( const css::beans::PropertyChangeEvent& rEvt ) override;
// XLinguServiceEventBroadcaster
virtual sal_Bool SAL_CALL
addLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener )
- throw(css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener ) override;
virtual sal_Bool SAL_CALL
removeLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener )
- throw(css::uno::RuntimeException, std::exception) override;
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener ) override;
// non-UNO functions
void LNG_DLLPUBLIC AddAsPropListener();
@@ -147,8 +143,7 @@ public:
// XPropertyChangeListener
virtual void SAL_CALL
- propertyChange( const css::beans::PropertyChangeEvent& rEvt )
- throw(css::uno::RuntimeException, std::exception) override;
+ propertyChange( const css::beans::PropertyChangeEvent& rEvt ) override;
};
class LNG_DLLPUBLIC PropertyHelper_Thesaurus
@@ -205,8 +200,7 @@ public:
// XPropertyChangeListener
virtual void SAL_CALL
- propertyChange( const css::beans::PropertyChangeEvent& rEvt )
- throw(css::uno::RuntimeException, std::exception) override;
+ propertyChange( const css::beans::PropertyChangeEvent& rEvt ) override;
static sal_Int16 GetDefaultNumberOfSuggestions() { return 16; }
@@ -239,12 +233,10 @@ public:
bool IsSpellCapitalization() const;
/// @throws css::uno::RuntimeException
bool addLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener )
- throw(css::uno::RuntimeException);
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener );
/// @throws css::uno::RuntimeException
bool removeLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener )
- throw(css::uno::RuntimeException);
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener );
};
@@ -281,8 +273,7 @@ public:
// XPropertyChangeListener
virtual void SAL_CALL
- propertyChange( const css::beans::PropertyChangeEvent& rEvt )
- throw(css::uno::RuntimeException, std::exception) override;
+ propertyChange( const css::beans::PropertyChangeEvent& rEvt ) override;
sal_Int16 GetMinLeading() const { return nResHyphMinLeading; }
sal_Int16 GetMinTrailing() const { return nResHyphMinTrailing; }
@@ -312,12 +303,10 @@ public:
sal_Int16 GetMinWordLength() const;
/// @throws css::uno::RuntimeException
bool addLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener )
- throw(css::uno::RuntimeException);
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener );
/// @throws css::uno::RuntimeException
bool removeLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener )
- throw(css::uno::RuntimeException);
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener );
};
} // namespace linguistic
diff --git a/include/linguistic/misc.hxx b/include/linguistic/misc.hxx
index 66ec2c7af435..b2a53bd3eadf 100644
--- a/include/linguistic/misc.hxx
+++ b/include/linguistic/misc.hxx
@@ -187,11 +187,11 @@ public:
void Deactivate();
// 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;
// XTerminateListener
- virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent ) throw(css::frame::TerminationVetoException, css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) throw(css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL queryTermination( const css::lang::EventObject& aEvent ) override;
+ virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) override;
};
} // namespace linguistic
diff --git a/include/linguistic/spelldta.hxx b/include/linguistic/spelldta.hxx
index 264be909b007..1edbf0381a0f 100644
--- a/include/linguistic/spelldta.hxx
+++ b/include/linguistic/spelldta.hxx
@@ -74,15 +74,15 @@ public:
SpellAlternatives& operator=( const SpellAlternatives& ) = delete;
// XSpellAlternatives
- virtual OUString SAL_CALL getWord( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::lang::Locale SAL_CALL getLocale( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int16 SAL_CALL getFailureType( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual ::sal_Int16 SAL_CALL getAlternativesCount( ) throw (css::uno::RuntimeException, std::exception) override;
- virtual css::uno::Sequence< OUString > SAL_CALL getAlternatives( ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual OUString SAL_CALL getWord( ) override;
+ virtual css::lang::Locale SAL_CALL getLocale( ) override;
+ virtual ::sal_Int16 SAL_CALL getFailureType( ) override;
+ virtual ::sal_Int16 SAL_CALL getAlternativesCount( ) override;
+ virtual css::uno::Sequence< OUString > SAL_CALL getAlternatives( ) override;
// XSetSpellAlternatives
- virtual void SAL_CALL setAlternatives( const css::uno::Sequence< OUString >& aAlternatives ) throw (css::uno::RuntimeException, std::exception) override;
- virtual void SAL_CALL setFailureType( ::sal_Int16 nFailureType ) throw (css::uno::RuntimeException, std::exception) override;
+ virtual void SAL_CALL setAlternatives( const css::uno::Sequence< OUString >& aAlternatives ) override;
+ virtual void SAL_CALL setFailureType( ::sal_Int16 nFailureType ) override;
// non-interface specific functions
void LNG_DLLPUBLIC SetWordLanguage(const OUString &rWord, sal_Int16 nLang);