summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-12 19:31:04 +0200
committerEike Rathke <erack@redhat.com>2013-09-12 19:31:45 +0200
commitb291852c2f907e5d181b1de43af216f7d03db96a (patch)
tree014dfe4334ecd0edc46f6570cceae1c9cf1e3166 /lingucomponent
parent2f6551b0167c2651f900b9c727bd74240b493754 (diff)
get rid of unnecessary conversion, use LinguIsUnspecified(OUString)
Change-Id: Ib1074e3025680306c0a8bf7dcff651cefdcb90ba
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index 48fe7c582134..5543a66a9dc7 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -208,11 +208,7 @@ void MergeNewStyleDicsAndOldStyleDics(
DBG_ASSERT( nOldStyleDics, "old style dictionary with more then one language found!");
if (nOldStyleDics > 0)
{
- /* TODO: this conversion exists only to check with
- * LinguIsUnspecified(), add another check that takes the tag
- * string instead. */
- LanguageType nLang = LanguageTag::convertToLanguageTypeWithFallback( aIt2->aLocaleNames[0] );
- if (nLang == LANGUAGE_DONTKNOW || linguistic::LinguIsUnspecified( nLang))
+ if (linguistic::LinguIsUnspecified( aIt2->aLocaleNames[0]))
{
OSL_FAIL( "old style dictionary with invalid language found!" );
continue;