summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-09-28 08:46:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-09-28 08:46:08 +0200
commit851c9f8f4be79be43837b6295decf90c8b27cc71 (patch)
treee63847b04d11b7d687a8e372b97264981e3bde16 /oox/source
parentc9f3277ea7bb22c395e8938168ce4df9101f7850 (diff)
Blind fix for Clang 3.8 "must explicitly initialize the const member" error
...as seen at <https://ci.libreoffice.org/job/lo_ubsan/681/console> Change-Id: I428b6e2fe55023fde5b77f7ff0bd1dba16bae2ed
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/diagram/diagramlayoutatoms.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.hxx b/oox/source/drawingml/diagram/diagramlayoutatoms.hxx
index 117326b625ab..d5281c7cb49f 100644
--- a/oox/source/drawingml/diagram/diagramlayoutatoms.hxx
+++ b/oox/source/drawingml/diagram/diagramlayoutatoms.hxx
@@ -196,7 +196,12 @@ class ChooseAtom
: public LayoutAtom
{
public:
- ChooseAtom(const LayoutNode& rLayoutNode) : LayoutAtom(rLayoutNode) {}
+ ChooseAtom(const LayoutNode& rLayoutNode)
+ : LayoutAtom(rLayoutNode)
+#if defined __clang__ && __clang_major__ == 3 && __clang_minor__ == 8
+ , maEmptyChildren()
+#endif
+ {}
virtual void accept( LayoutAtomVisitor& ) override;
virtual const std::vector<LayoutAtomPtr>& getChildren() const override;
private: