From f2ccc04b8e06e90743ea4e8338ef08fcc972a4c7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 17 Apr 2014 16:23:36 +0100 Subject: coverity#708608 Uninitialized scalar field Change-Id: Ifb590c408289bb2c12a88af3f923e4d756711669 --- vcl/source/gdi/metaact.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index 6c574242c869..00dcd61fcc7b 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -1329,7 +1329,18 @@ void MetaTextRectAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) maStr = read_uInt16_lenPrefixed_uInt16s_ToOUString(rIStm); } -IMPL_META_ACTION( TextLine, META_TEXTLINE_ACTION ) +MetaTextLineAction::MetaTextLineAction() : + MetaAction ( META_TEXTLINE_ACTION ), + mnWidth ( 0 ), + meStrikeout ( STRIKEOUT_NONE ), + meUnderline ( UNDERLINE_NONE ), + meOverline ( UNDERLINE_NONE ) +{ +} + +MetaTextLineAction::~MetaTextLineAction() +{ +} MetaTextLineAction::MetaTextLineAction( const Point& rPos, long nWidth, FontStrikeout eStrikeout, -- cgit