diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-23 10:23:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-24 11:48:37 +0200 |
commit | 6f2d11a57fe28eceec745d025602e7470853a229 (patch) | |
tree | 28f5eb09125186342e002841b0f58c461f75a11e /include/codemaker | |
parent | 5c43ca5518f8f3558ac7f27a37b43610c219c4d5 (diff) |
convert codemaker::cpp::IdentifierTranslationMode to scoped enum
Change-Id: I17f7a2f8f89166c5a51be4ee15986d21f1cb24b3
Diffstat (limited to 'include/codemaker')
-rw-r--r-- | include/codemaker/commoncpp.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/codemaker/commoncpp.hxx b/include/codemaker/commoncpp.hxx index e09b387cd92e..a1a8e9180e59 100644 --- a/include/codemaker/commoncpp.hxx +++ b/include/codemaker/commoncpp.hxx @@ -45,15 +45,15 @@ rtl::OString scopedCppName(rtl::OString const & type, bool ns_alias=true); rtl::OString translateUnoToCppType( codemaker::UnoType::Sort sort, rtl::OUString const & nucleus); -enum IdentifierTranslationMode { - ITM_GLOBAL, - ITM_NONGLOBAL, - ITM_KEYWORDSONLY +enum class IdentifierTranslationMode { + Global, + NonGlobal, + KeywordsOnly }; rtl::OString translateUnoToCppIdentifier( rtl::OString const & identifier, rtl::OString const & prefix, - IdentifierTranslationMode transmode = ITM_GLOBAL, + IdentifierTranslationMode transmode = IdentifierTranslationMode::Global, rtl::OString const * forbidden = nullptr); } } |