summaryrefslogtreecommitdiff
path: root/linguistic/source/spelldsp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-08 11:28:10 +0200
committerNoel Grandin <noel@peralex.com>2015-04-08 11:40:15 +0200
commit79b2059fa8e3c69088532f0ce521a285af5455cf (patch)
treeecce1ea865e24b4657b0aa424b10cb78928d1256 /linguistic/source/spelldsp.cxx
parent704edbf7dc844e52404bf52f9d5dc768cfd024d0 (diff)
convert CapType to scoped enum
Change-Id: I88fa3672a1f933ae818368c9bc400c6a845babb6
Diffstat (limited to 'linguistic/source/spelldsp.cxx')
-rw-r--r--linguistic/source/spelldsp.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/spelldsp.cxx b/linguistic/source/spelldsp.cxx
index c3b3282a599b..89d4190253c6 100644
--- a/linguistic/source/spelldsp.cxx
+++ b/linguistic/source/spelldsp.cxx
@@ -428,8 +428,8 @@ bool SpellCheckerDispatcher::isValid_Impl(
bRes = !xTmp->isNegative();
} else {
setCharClass(LanguageTag(nLanguage));
- sal_uInt16 ct = capitalType(aChkWord, pCharClass);
- if (ct == CAPTYPE_INITCAP || ct == CAPTYPE_ALLCAP) {
+ CapType ct = capitalType(aChkWord, pCharClass);
+ if (ct == CapType::INITCAP || ct == CapType::ALLCAP) {
Reference< XDictionaryEntry > xTmp2( lcl_GetRulingDictionaryEntry( makeLowerCase(aChkWord, pCharClass), nLanguage ) );
if (xTmp2.is()) {
bRes = !xTmp2->isNegative();
@@ -672,8 +672,8 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
else
{
setCharClass(LanguageTag(nLanguage));
- sal_uInt16 ct = capitalType(aChkWord, pCharClass);
- if (ct == CAPTYPE_INITCAP || ct == CAPTYPE_ALLCAP)
+ CapType ct = capitalType(aChkWord, pCharClass);
+ if (ct == CapType::INITCAP || ct == CapType::ALLCAP)
{
Reference< XDictionaryEntry > xTmp2( lcl_GetRulingDictionaryEntry( makeLowerCase(aChkWord, pCharClass), nLanguage ) );
if (xTmp2.is())
@@ -691,10 +691,10 @@ Reference< XSpellAlternatives > SpellCheckerDispatcher::spell_Impl(
{
switch ( ct )
{
- case CAPTYPE_INITCAP:
+ case CapType::INITCAP:
aProposalList.Prepend( pCharClass->titlecase(aAddRplcTxt) );
break;
- case CAPTYPE_ALLCAP:
+ case CapType::ALLCAP:
aProposalList.Prepend( pCharClass->uppercase(aAddRplcTxt) );
break;
default: