summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextformat.cpp
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-06-18 16:28:54 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-06-20 15:17:22 +0000
commit821533b61f01184e1bc0a808ad633470c20dbb3a (patch)
treeea983754a892247092f7b7b44b3f2a59b89a1c4d /src/gui/text/qtextformat.cpp
parente147c3d413a6bef635a200d7b306c88f867ad278 (diff)
Fix uninitialized members
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 <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/text/qtextformat.cpp')
-rw-r--r--src/gui/text/qtextformat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextformat.cpp b/src/gui/text/qtextformat.cpp
index f992bc75e6..1653ac8c33 100644
--- a/src/gui/text/qtextformat.cpp
+++ b/src/gui/text/qtextformat.cpp
@@ -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