Skip to content

Commit

Permalink
Fix uninitialized members
Browse files Browse the repository at this point in the history
CID 181185:  Uninitialized members  (UNINIT_CTOR)
Non-static class member "key" is not initialized in this constructor nor in any functions that it calls.

Change-Id: I8f2c18263a0dc81b98eb398d618184bf761c02e1
Coverity-Id: 181185
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
jsfdez committed Jun 20, 2017
1 parent e147c3d commit 821533b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/text/qtextformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ struct Property
inline Property(qint32 k, const QVariant &v) : key(k), value(v) {}
inline Property() {}

qint32 key;
qint32 key = -1;
QVariant value;

inline bool operator==(const Property &other) const
Expand Down

0 comments on commit 821533b

Please sign in to comment.