diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-18 17:20:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-04-20 06:12:04 +0000 |
commit | 20ce82d5d5f936438d5e9c08d308754d39037ede (patch) | |
tree | f41b71eace1f20c5dd58f80af41fac634ed64dad /vcl/generic | |
parent | fc0d494b8936ab11abca761810de8a03f579edf5 (diff) |
convert AppleLanguageId to scoped enum
Change-Id: I6646872f76bb9365a8c2ef809bc942f28b690a32
Reviewed-on: https://gerrit.libreoffice.org/15378
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontmanager.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/generic/fontmanager/fontmanager.cxx b/vcl/generic/fontmanager/fontmanager.cxx index ca9651ef1dcc..a357c7896f7c 100644 --- a/vcl/generic/fontmanager/fontmanager.cxx +++ b/vcl/generic/fontmanager/fontmanager.cxx @@ -1156,10 +1156,11 @@ void PrintFontManager::analyzeTrueTypeFamilyName( void* pTTFont, ::std::list< OU } else if (pNameRecords[i].platformID == 1) { - LanguageTag aApple(makeLanguageTagFromAppleLanguageId(pNameRecords[i].languageID)); + AppleLanguageId aAppleId = static_cast<AppleLanguageId>(pNameRecords[i].languageID); + LanguageTag aApple(makeLanguageTagFromAppleLanguageId(aAppleId)); if (aApple == aSystem) nMatch = 8000; - else if (pNameRecords[i].languageID == APPLE_LANG_ENGLISH) + else if (aAppleId == AppleLanguageId::ENGLISH) nMatch = 2000; else nMatch = 1000; |