From 271c634e4fd2445dd61d6bccd75b926cbc71bc65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 15 Apr 2014 21:19:19 +0100 Subject: [PATCH] coverity#1202968 Uninitialized scalar field Change-Id: Ic226202bb1ce429f9dd8e13183ec64ffc9059d05 --- sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx index 6617b0b03c4a..a094f2a21e34 100644 --- a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx +++ b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx @@ -23,9 +23,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeScPivotLayoutTreeListLabel( return new ScPivotLayoutTreeListLabel(pParent, WB_BORDER | WB_TABSTOP | WB_CLIPCHILDREN | WB_FORCE_MAKEVISIBLE); } -ScPivotLayoutTreeListLabel::ScPivotLayoutTreeListLabel(Window* pParent, WinBits nBits) : - ScPivotLayoutTreeListBase(pParent, nBits, LABEL_LIST) -{} +ScPivotLayoutTreeListLabel::ScPivotLayoutTreeListLabel(Window* pParent, WinBits nBits) + : ScPivotLayoutTreeListBase(pParent, nBits, LABEL_LIST) + , maDataItem(0) +{ +} ScPivotLayoutTreeListLabel::~ScPivotLayoutTreeListLabel() {}