From a887c42095d5749e896a8e8ee41e9e07f4e65557 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 27 Sep 2018 08:47:42 +0200 Subject: Blind fix for error with old Clang : > In file included from /home/tdf/lode/jenkins/workspace/lo_ubsan/codemaker/source/codemaker/exceptiontree.cxx:28: > /home/tdf/lode/jenkins/workspace/lo_ubsan/include/unoidl/unoidl.hxx:507:9: error: constructor for 'unoidl::SingleInterfaceBasedServiceEntity::Constructor' must explicitly initialize the const member 'annotations' > Constructor(): defaultConstructor(true) {} > ^ > /home/tdf/lode/jenkins/workspace/lo_ubsan/include/unoidl/unoidl.hxx:524:44: note: 'annotations' declared here > std::vector< rtl::OUString > const annotations; ^ 1 error generated. Change-Id: I041a67599b48959bcca136bab646f6943d071bed --- include/unoidl/unoidl.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/unoidl/unoidl.hxx b/include/unoidl/unoidl.hxx index 711b220f7e0a..9450ebf83bf0 100644 --- a/include/unoidl/unoidl.hxx +++ b/include/unoidl/unoidl.hxx @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -504,7 +505,11 @@ public: bool const rest; }; - Constructor(): defaultConstructor(true) {} + Constructor(): defaultConstructor(true) +#if defined __clang__ && CLANG_VERSION == 30800 + , annotations() +#endif + {} Constructor( rtl::OUString const & theName, -- cgit