diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-16 14:42:22 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-16 14:42:36 +0100 |
commit | 7ccdadb57c18e53e887ac294a26f3756e7843927 (patch) | |
tree | 33aaaa4d868a21546c61a7018e2424c7b3109ac9 /unotools | |
parent | 2eb9470c14b665f69c87035fe33a71860fcf2600 (diff) |
use LanguageTag::reset()
Change-Id: I592cb042465ceda960a0b34dfe3eb6d669868acf
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/syslocaleoptions.cxx | 8 | ||||
-rw-r--r-- | unotools/source/i18n/transliterationwrapper.cxx | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/unotools/source/config/syslocaleoptions.cxx b/unotools/source/config/syslocaleoptions.cxx index b05837e8754f..10c7574d5623 100644 --- a/unotools/source/config/syslocaleoptions.cxx +++ b/unotools/source/config/syslocaleoptions.cxx @@ -291,11 +291,11 @@ void SvtSysLocaleOptions_Impl::MakeRealLocale() if (m_aLocaleString.isEmpty()) { LanguageType nLang = MsLangId::getSystemLanguage(); - m_aRealLocale = LanguageTag( nLang); + m_aRealLocale.reset( nLang); } else { - m_aRealLocale = LanguageTag( m_aLocaleString); + m_aRealLocale.reset( m_aLocaleString); } } @@ -304,11 +304,11 @@ void SvtSysLocaleOptions_Impl::MakeRealUILocale() if (m_aUILocaleString.isEmpty()) { LanguageType nLang = MsLangId::getSystemUILanguage(); - m_aRealUILocale = LanguageTag( nLang); + m_aRealUILocale.reset( nLang); } else { - m_aRealUILocale = LanguageTag( m_aUILocaleString); + m_aRealUILocale.reset( m_aUILocaleString); } } diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx index 11f188e89438..a2c57fe7bc64 100644 --- a/unotools/source/i18n/transliterationwrapper.cxx +++ b/unotools/source/i18n/transliterationwrapper.cxx @@ -109,7 +109,7 @@ void TransliterationWrapper::setLanguageLocaleImpl( sal_uInt16 nLang ) { if( LANGUAGE_NONE == nLang ) nLang = LANGUAGE_SYSTEM; - aLanguageTag = LanguageTag( nLang); + aLanguageTag.reset( nLang); } @@ -175,7 +175,7 @@ void TransliterationWrapper::loadModuleByImplName( com::sun::star::lang::Locale aLocale( aLanguageTag.getLocale()); // Reset LanguageTag, so the next call to loadModuleIfNeeded() forces // new settings. - aLanguageTag = LanguageTag( LANGUAGE_DONTKNOW); + aLanguageTag.reset( LANGUAGE_DONTKNOW); if ( xTrans.is() ) xTrans->loadModuleByImplName( rModuleName, aLocale ); } |