From ebf82e52c945f8c2a7c021b547064e5bbeadfe2f Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Fri, 5 Oct 2012 23:42:12 -0300 Subject: Kill use of macro LINGU_EXCEPTIONS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This macro is not defined, so we can kill all code that have the "#ifdef LINGU_EXCEPTIONS". Just a cleanup, the rationale is the same. Change-Id: Ib6f784859210d5a59210af51766ef4d7b8d7ead6 Signed-off-by: Marcos Paulo de Souza Reviewed-on: https://gerrit.libreoffice.org/778 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 8 -------- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 8 -------- 2 files changed, 16 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm index f34eabdaee46..7be1983e1d16 100644 --- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm +++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm @@ -281,11 +281,7 @@ sal_Bool SAL_CALL return sal_True; if (!hasLocale( rLocale )) -#ifdef LINGU_EXCEPTIONS - throw( IllegalArgumentException() ); -#else return sal_True; -#endif // Get property values to be used. // These are be the default values set in the SN_LINGU_PROPERTIES @@ -395,11 +391,7 @@ Reference< XSpellAlternatives > SAL_CALL return NULL; if (!hasLocale( rLocale )) -#ifdef LINGU_EXCEPTIONS - throw( IllegalArgumentException() ); -#else return NULL; -#endif Reference< XSpellAlternatives > xAlt; if (!isValid( rWord, rLocale, rProperties )) diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 473e6c79ac05..94d8fd025a8d 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -359,11 +359,7 @@ sal_Bool SAL_CALL SpellChecker::isValid( const OUString& rWord, const Locale& rL return sal_True; if (!hasLocale( rLocale )) -#ifdef LINGU_EXCEPTIONS - throw( IllegalArgumentException() ); -#else return sal_True; -#endif // return sal_False to process SPELLML requests (they are longer than the header) if (rWord.match(A2OU(SPELLML_HEADER), 0) && (rWord.getLength() > 10)) return sal_False; @@ -480,11 +476,7 @@ Reference< XSpellAlternatives > SAL_CALL SpellChecker::spell( return NULL; if (!hasLocale( rLocale )) -#ifdef LINGU_EXCEPTIONS - throw( IllegalArgumentException() ); -#else return NULL; -#endif Reference< XSpellAlternatives > xAlt; if (!isValid( rWord, rLocale, rProperties )) -- cgit