From 5676ced82539d9e40bde6196d2aa3b2e4c7b3fdb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 22 Feb 2017 16:39:20 +0200 Subject: make UNO enums scoped for internal LO code this modifies codemaker so that, for an UNO enum, we generate code that effectively looks like: #ifdef LIBO_INTERNAL_ONLY && HAVE_CX11_CONSTEXPR enum class XXX { ONE = 1 }; constexpr auto ONE = XXX_ONE; #else ...the old normal way.. #endif which means that for LO internal code, the enums are scoped. The "constexpr auto" trick acts like an alias so we don't have to use scoped naming everywhere. Change-Id: I3054ecb230e8666ce98b4a9cb87b384df5f64fb4 Reviewed-on: https://gerrit.libreoffice.org/34546 Tested-by: Jenkins Reviewed-by: Noel Grandin --- codemaker/source/commoncpp/commoncpp.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'codemaker/source/commoncpp') diff --git a/codemaker/source/commoncpp/commoncpp.cxx b/codemaker/source/commoncpp/commoncpp.cxx index 4f1840c54e43..a4279e3a98dd 100644 --- a/codemaker/source/commoncpp/commoncpp.cxx +++ b/codemaker/source/commoncpp/commoncpp.cxx @@ -63,7 +63,6 @@ OString scopedCppName(OString const & type, bool ns_alias) return s; } - OString translateUnoToCppType( codemaker::UnoType::Sort sort, OUString const & nucleus) { -- cgit