summaryrefslogtreecommitdiff
path: root/linguistic/source/spelldsp.cxx
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2012-10-05 23:42:12 -0300
committerCaolán McNamara <caolanm@redhat.com>2012-10-09 21:37:59 +0000
commitebf82e52c945f8c2a7c021b547064e5bbeadfe2f (patch)
treef002ddbef0c5eb2eefd751e443a168aafbe2d4a5 /linguistic/source/spelldsp.cxx
parent55149144cb926513ef250c87fdf0c59e11e2f6cf (diff)
Kill use of macro LINGU_EXCEPTIONS
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 <marcos.souza.org@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/778 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'linguistic/source/spelldsp.cxx')
-rw-r--r--linguistic/source/spelldsp.cxx16
1 files changed, 2 insertions, 14 deletions
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 ) );