diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-10 15:04:39 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-11 06:55:08 +0000 |
commit | 33efbfda45a96f540f976abf3dc00ab256872af4 (patch) | |
tree | a19925f0928a93474e47b6740470d6ed79c00507 /i18npool/source/characterclassification/cclass_unicode.cxx | |
parent | 265068d65b39688b8a4756dfbcd46453dd1f9b70 (diff) |
convert MappingType to scoped enum
Change-Id: I1f00e1fbdb9213d0c2f30da116684b77842282f5
Reviewed-on: https://gerrit.libreoffice.org/24851
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'i18npool/source/characterclassification/cclass_unicode.cxx')
-rw-r--r-- | i18npool/source/characterclassification/cclass_unicode.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/source/characterclassification/cclass_unicode.cxx b/i18npool/source/characterclassification/cclass_unicode.cxx index e9e9612f65f7..c4a8babb0a6f 100644 --- a/i18npool/source/characterclassification/cclass_unicode.cxx +++ b/i18npool/source/characterclassification/cclass_unicode.cxx @@ -63,7 +63,7 @@ cclass_Unicode::toUpper( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, if (nCount + nPos > len) nCount = len - nPos; - trans->setMappingType(MappingTypeToUpper, rLocale); + trans->setMappingType(MappingType::ToUpper, rLocale); return trans->transliterateString2String(Text, nPos, nCount); } @@ -75,7 +75,7 @@ cclass_Unicode::toLower( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, if (nCount + nPos > len) nCount = len - nPos; - trans->setMappingType(MappingTypeToLower, rLocale); + trans->setMappingType(MappingType::ToLower, rLocale); return trans->transliterateString2String(Text, nPos, nCount); } @@ -89,7 +89,7 @@ cclass_Unicode::toTitle( const OUString& Text, sal_Int32 nPos, sal_Int32 nCount, if (nCount + nPos > len) nCount = len - nPos; - trans->setMappingType(MappingTypeToTitle, rLocale); + trans->setMappingType(MappingType::ToTitle, rLocale); rtl_uString* pStr = rtl_uString_alloc(nCount); sal_Unicode* out = pStr->buffer; Reference< BreakIteratorImpl > xBrk(new BreakIteratorImpl(m_xContext)); |