diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 14:20:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-24 15:05:00 +0000 |
commit | 2812a4eea7f209123ff5419f497f47fff2aa22f0 (patch) | |
tree | dc7db2ac40920fb739f36ea5c739f1dce5c49a84 /vcl | |
parent | 88aeba2d0ed2cb2eda7a24ec971792b629506ffd (diff) |
coverity#738922 Uninitialized scalar field
Change-Id: I22ca430d8737834655e6f8c30ecf489a50e00ba1
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/generic/glyphcache.hxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/inc/generic/glyphcache.hxx b/vcl/inc/generic/glyphcache.hxx index f6e6e890c3e1..9454700afb62 100644 --- a/vcl/inc/generic/glyphcache.hxx +++ b/vcl/inc/generic/glyphcache.hxx @@ -115,6 +115,8 @@ private: class GlyphMetric { public: + GlyphMetric() : mnAdvanceWidth(0) {} + Point GetOffset() const { return maOffset; } Point GetDelta() const { return maDelta; } Size GetSize() const { return maSize; } @@ -153,10 +155,7 @@ struct ExtGlyphData class GlyphData { public: - mnLruValue() - : mnLruValue(0) - { - } + GlyphData() : mnLruValue(0) {} const GlyphMetric& GetMetric() const { return maMetric; } Size GetSize() const { return maMetric.GetSize(); } |