[Libreoffice-commits] core.git: include/unoidl
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Sep 27 06:49:47 UTC 2018
include/unoidl/unoidl.hxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit a887c42095d5749e896a8e8ee41e9e07f4e65557
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Sep 27 08:47:42 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Sep 27 08:47:42 2018 +0200
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
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,
More information about the Libreoffice-commits
mailing list