summaryrefslogtreecommitdiff
path: root/include/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-09-27 08:47:42 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-09-27 08:47:42 +0200
commita887c42095d5749e896a8e8ee41e9e07f4e65557 (patch)
tree2f1c13fd95fa5b2083aeb82c79dc96688d6a038c /include/unoidl
parent1fb688b2e13da39b8099a3f4ba58dc9aeef8d723 (diff)
Blind fix for error with old Clang
<https://ci.libreoffice.org//job/lo_ubsan/1050/consoleFull#-18477798892a810015-1db5-427c-9ce2-83b5f06a5284>: > 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
Diffstat (limited to 'include/unoidl')
-rw-r--r--include/unoidl/unoidl.hxx7
1 files changed, 6 insertions, 1 deletions
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 <cassert>
#include <vector>
+#include <config_clang.h>
#include <osl/mutex.hxx>
#include <rtl/ref.hxx>
#include <rtl/ustring.hxx>
@@ -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,