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 --- linguistic/source/spelldsp.cxx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'linguistic/source/spelldsp.cxx') diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx index 1ddfa1ce0247..bc1939c2faca 100644 --- a/linguistic/source/spelldsp.cxx +++ b/linguistic/source/spelldsp.cxx @@ -295,13 +295,7 @@ sal_Bool SpellCheckerDispatcher::isValid_Impl( SpellSvcByLangMap_t::iterator aIt( aSvcMap.find( nLanguage ) ); LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; - if (!pEntry) - { -#ifdef LINGU_EXCEPTIONS - throw IllegalArgumentException(); -#endif - } - else + if (pEntry) { OUString aChkWord( rWord ); Locale aLocale( CreateLocale( nLanguage ) ); @@ -461,13 +455,7 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl( SpellSvcByLangMap_t::iterator aIt( aSvcMap.find( nLanguage ) ); LangSvcEntries_Spell *pEntry = aIt != aSvcMap.end() ? aIt->second.get() : NULL; - if (!pEntry) - { -#ifdef LINGU_EXCEPTIONS - throw IllegalArgumentException(); -#endif - } - else + if (pEntry) { OUString aChkWord( rWord ); Locale aLocale( CreateLocale( nLanguage ) ); -- cgit