diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 11:28:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-08 11:40:15 +0200 |
commit | 79b2059fa8e3c69088532f0ce521a285af5455cf (patch) | |
tree | ecce1ea865e24b4657b0aa424b10cb78928d1256 /lingucomponent/source/thesaurus | |
parent | 704edbf7dc844e52404bf52f9d5dc768cfd024d0 (diff) |
convert CapType to scoped enum
Change-Id: I88fa3672a1f933ae818368c9bc400c6a845babb6
Diffstat (limited to 'lingucomponent/source/thesaurus')
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 7ab514cfa3e3..6eab10c50978 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -285,7 +285,7 @@ Sequence < Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL Thes OUString rTerm(qTerm); OUString pTerm(qTerm); - sal_uInt16 ct = CAPTYPE_UNKNOWN; + CapType ct = CapType::UNKNOWN; sal_Int32 stem = 0; sal_Int32 stem2 = 0; @@ -424,16 +424,16 @@ Sequence < Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL Thes } } - sal_uInt16 ct1 = capitalType(sTerm, pCC); - if (CAPTYPE_MIXED == ct1) + CapType ct1 = capitalType(sTerm, pCC); + if (CapType::MIXED == ct1) ct = ct1; OUString cTerm; switch (ct) { - case CAPTYPE_ALLCAP: + case CapType::ALLCAP: cTerm = makeUpperCase(sTerm, pCC); break; - case CAPTYPE_INITCAP: + case CapType::INITCAP: cTerm = makeInitCap(sTerm, pCC); break; default: |