[Libreoffice-commits] core.git: vcl/source

Caolán McNamara caolanm at redhat.com
Thu Apr 17 07:43:08 PDT 2014


 vcl/source/fontsubset/fontsubset.cxx |   28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

New commits:
commit f6d2bd87b056b187f856d380837b72f5d16522ba
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Apr 17 15:41:56 2014 +0100

    coverity#708591 Uninitialized pointer field
    
    Change-Id: Ib829316c9aa522ca846bb2c1cd5233197dba3b54

diff --git a/vcl/source/fontsubset/fontsubset.cxx b/vcl/source/fontsubset/fontsubset.cxx
index 3be4099..dea870b 100644
--- a/vcl/source/fontsubset/fontsubset.cxx
+++ b/vcl/source/fontsubset/fontsubset.cxx
@@ -23,18 +23,26 @@
 #include <sft.hxx>
 
 FontSubsetInfo::FontSubsetInfo()
-:   m_nAscent( 0)
-,   m_nDescent( 0)
-,   m_nCapHeight( 0)
-,   m_nFontType( FontSubsetInfo::NO_FONT)
-,   mpInFontBytes( NULL)
-,   mnInByteLength( 0)
-,   meInFontType( FontSubsetInfo::NO_FONT)
-,   mpSftTTFont( NULL)
-{}
+    : m_nAscent( 0)
+    , m_nDescent( 0)
+    , m_nCapHeight( 0)
+    , m_nFontType( FontSubsetInfo::NO_FONT)
+    , mpInFontBytes( NULL)
+    , mnInByteLength( 0)
+    , meInFontType( FontSubsetInfo::NO_FONT)
+    , mpSftTTFont( NULL)
+    , mnReqFontTypeMask(0)
+    , mpOutFile(NULL)
+    , mpReqFontName(NULL)
+    , mpReqGlyphIds(NULL)
+    , mpReqEncodedIds(NULL)
+    , mnReqGlyphCount(0)
+{
+}
 
 FontSubsetInfo::~FontSubsetInfo()
-{}
+{
+}
 
 // prepare subsetting for fonts where the input font file is mapped
 bool FontSubsetInfo::LoadFont(


More information about the Libreoffice-commits mailing list