diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-13 21:31:45 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-13 21:47:11 +0200 |
commit | 4fb405a4f5132ebfd2d72fe4fcd266608307d7de (patch) | |
tree | 35e0e22e11ce2436ce302d85be79de6dcc778e0b | |
parent | f4bfce94abc10fbd2d8b37113e27b36c1e79fc61 (diff) |
copy and reset maCachedVariants
Change-Id: I898ecf7d3122b5cdbdc9d0df5aa4ac88faa423f1
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index e2f714c7a5c2..3b94021db1fd 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -307,6 +307,7 @@ LanguageTag::LanguageTag( const LanguageTag & rLanguageTag ) maCachedLanguage( rLanguageTag.maCachedLanguage), maCachedScript( rLanguageTag.maCachedScript), maCachedCountry( rLanguageTag.maCachedCountry), + maCachedVariants( rLanguageTag.maCachedVariants), mpImplLangtag( rLanguageTag.mpImplLangtag ? lt_tag_copy( LANGTAGCAST( rLanguageTag.mpImplLangtag)) : NULL), mnLangID( rLanguageTag.mnLangID), @@ -336,6 +337,7 @@ LanguageTag& LanguageTag::operator=( const LanguageTag & rLanguageTag ) maCachedLanguage = rLanguageTag.maCachedLanguage; maCachedScript = rLanguageTag.maCachedScript; maCachedCountry = rLanguageTag.maCachedCountry; + maCachedVariants = rLanguageTag.maCachedVariants; mpImplLangtag = rLanguageTag.mpImplLangtag; mpImplLangtag = rLanguageTag.mpImplLangtag ? lt_tag_copy( LANGTAGCAST( rLanguageTag.mpImplLangtag)) : NULL; @@ -387,6 +389,8 @@ void LanguageTag::resetVars() maCachedScript = OUString(); if (!maCachedCountry.isEmpty()) maCachedCountry = OUString(); + if (!maCachedVariants.isEmpty()) + maCachedVariants = OUString(); mnLangID = LANGUAGE_DONTKNOW; meIsValid = DECISION_DONTKNOW; meIsIsoLocale = DECISION_DONTKNOW; |