diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-23 12:01:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-24 11:48:38 +0200 |
commit | cd1bbdf0a494298882f79add7b5f28c3b56d9a14 (patch) | |
tree | bef29e2648302ce58ace4e9ff7d110cd2205bcb0 /codemaker/source/commoncpp | |
parent | 6ddc80e53a601cdf6984e36a56cd18b2e99377bc (diff) |
convert codemaker::UnoType::Sort to scoped enum
Change-Id: I70a84f777e714bcc20c2d7b06b918e3be0f3ce4a
Diffstat (limited to 'codemaker/source/commoncpp')
-rw-r--r-- | codemaker/source/commoncpp/commoncpp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codemaker/source/commoncpp/commoncpp.cxx b/codemaker/source/commoncpp/commoncpp.cxx index e50e982cca60..d2c5915f2e28 100644 --- a/codemaker/source/commoncpp/commoncpp.cxx +++ b/codemaker/source/commoncpp/commoncpp.cxx @@ -68,15 +68,15 @@ OString translateUnoToCppType( codemaker::UnoType::Sort sort, OUString const & nucleus) { OStringBuffer buf; - if (sort <= codemaker::UnoType::SORT_ANY) { - static char const * const cppTypes[codemaker::UnoType::SORT_ANY + 1] = { + if (sort <= codemaker::UnoType::Sort::Any) { + static char const * const cppTypes[static_cast<int>(codemaker::UnoType::Sort::Any) + 1] = { "void", "::sal_Bool", "::sal_Int8", "::sal_Int16", "::sal_uInt16", "::sal_Int32", "::sal_uInt32", "::sal_Int64", "::sal_uInt64", "float", "double", "::sal_Unicode", "rtl::OUString", "::css::uno::Type", "::css::uno::Any" }; - buf.append(cppTypes[sort]); + buf.append(cppTypes[static_cast<int>(sort)]); } else { - if (sort == codemaker::UnoType::SORT_INTERFACE_TYPE + if (sort == codemaker::UnoType::Sort::Interface && nucleus == "com.sun.star.uno.XInterface") { buf.append("::css::uno::XInterface"); |