constify these methods

Change-Id: I72173ef6cbea28afe9f349aa57a94cbfd537a851
This commit is contained in:
Caolán McNamara
2013-07-12 14:52:10 +01:00
parent d75dd80abb
commit fc0a23e52d
2 changed files with 8 additions and 10 deletions

View File

@@ -98,7 +98,7 @@ class SVL_DLLPUBLIC SvtSystemLanguageOptions : public utl::ConfigItem
private:
OUString m_sWin16SystemLocale;
bool isKeyboardLayoutTypeInstalled(sal_Int16 scriptType);
bool isKeyboardLayoutTypeInstalled(sal_Int16 scriptType) const;
public:
SvtSystemLanguageOptions();
@@ -107,10 +107,10 @@ public:
virtual void Commit();
virtual void Notify( const com::sun::star::uno::Sequence< OUString >& rPropertyNames );
LanguageType GetWin16SystemLanguage();
LanguageType GetWin16SystemLanguage() const;
bool isCTLKeyboardLayoutInstalled();
bool isCJKKeyboardLayoutInstalled();
bool isCTLKeyboardLayoutInstalled() const;
bool isCJKKeyboardLayoutInstalled() const;
};
#endif // _SVTOOLS_LANGUAGEOPTIONS_HXX

View File

@@ -200,16 +200,14 @@ void SvtSystemLanguageOptions::Notify( const com::sun::star::uno::Sequence< O
// no listeners supported yet
}
LanguageType SvtSystemLanguageOptions::GetWin16SystemLanguage()
LanguageType SvtSystemLanguageOptions::GetWin16SystemLanguage() const
{
if( m_sWin16SystemLocale.isEmpty() )
return LANGUAGE_NONE;
return LanguageTag( m_sWin16SystemLocale ).getLanguageType();
}
bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptType)
bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptType) const
{
bool isInstalled = false;
#ifdef WNT
@@ -241,13 +239,13 @@ bool SvtSystemLanguageOptions::isKeyboardLayoutTypeInstalled(sal_Int16 scriptTyp
}
bool SvtSystemLanguageOptions::isCTLKeyboardLayoutInstalled()
bool SvtSystemLanguageOptions::isCTLKeyboardLayoutInstalled() const
{
return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::COMPLEX);
}
bool SvtSystemLanguageOptions::isCJKKeyboardLayoutInstalled()
bool SvtSystemLanguageOptions::isCJKKeyboardLayoutInstalled() const
{
return isKeyboardLayoutTypeInstalled(::com::sun::star::i18n::ScriptType::ASIAN);
}