diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-21 02:44:30 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-21 15:24:43 +0200 |
commit | cf417c2cd421d21ccc780ea2cfde9c9339f6a878 (patch) | |
tree | 722ddc4b7a2e73324a9091626b83ea46f2a9819d /i18nlangtag | |
parent | 5799417f70fdee3291467c37c88d1bb0212187a2 (diff) |
use bcp47 unresolved system for operator<()
We have several tags mapping to one LangID, so using LangID isn't a good
idea.
Change-Id: I561745b032af7eb0c54cf55dbcd26872103e2e07
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 67047c61163e..552169700d40 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -2093,7 +2093,7 @@ bool LanguageTag::operator!=( const LanguageTag & rLanguageTag ) const bool LanguageTag::operator<( const LanguageTag & rLanguageTag ) const { - return getLanguageType() < rLanguageTag.getLanguageType(); + return getBcp47( false).compareToIgnoreAsciiCase( rLanguageTag.getBcp47( false)) < 0; } |