From c70d49c7c888da8cfd73db8585e7be1f37fc398a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 17 Apr 2017 21:35:35 +0200 Subject: use strong_int for LanguageType Change-Id: If99a944f7032180355da291ad283b4cfcea4f448 Reviewed-on: https://gerrit.libreoffice.org/36629 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/config/languageoptions.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svl/source/config') diff --git a/svl/source/config/languageoptions.cxx b/svl/source/config/languageoptions.cxx index 3d2f5947c925..c7314aede9ce 100644 --- a/svl/source/config/languageoptions.cxx +++ b/svl/source/config/languageoptions.cxx @@ -134,7 +134,7 @@ bool SvtLanguageOptions::IsReadOnly(SvtLanguageOptions::EOption eOption) const } // returns for a language the scripttype -SvtScriptType SvtLanguageOptions::GetScriptTypeOfLanguage( sal_uInt16 nLang ) +SvtScriptType SvtLanguageOptions::GetScriptTypeOfLanguage( LanguageType nLang ) { if( LANGUAGE_DONTKNOW == nLang ) nLang = LANGUAGE_ENGLISH_US; @@ -184,7 +184,7 @@ sal_Int16 SvtLanguageOptions::FromSvtScriptTypeToI18N( SvtScriptType nItemType ) return 0; } -sal_Int16 SvtLanguageOptions::GetI18NScriptTypeOfLanguage( sal_uInt16 nLang ) +sal_Int16 SvtLanguageOptions::GetI18NScriptTypeOfLanguage( LanguageType nLang ) { return FromSvtScriptTypeToI18N( GetScriptTypeOfLanguage( nLang ) ); } @@ -237,7 +237,7 @@ bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptTyp for(int i = 0; i < nLayouts; ++i) { LCID lang = MAKELCID((WORD)(reinterpret_cast(lpList[i]) & 0xffff), SORT_DEFAULT); - if (MsLangId::getScriptType(lang) == scriptType) + if (MsLangId::getScriptType(LanguageType(lang)) == scriptType) { isInstalled = true; break; -- cgit