summaryrefslogtreecommitdiffstats
path: root/src/testlib/qabstractitemmodeltester.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-11 13:53:32 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-05-19 17:54:20 +0200
commit1356f0c2c3c29cb5a5a676de23f3d582c140bc8c (patch)
tree0309a3e9737880ed1b1e36f04eadacfc7707c36b /src/testlib/qabstractitemmodeltester.cpp
parenta97010b542f096dfc97afe214d8003009d887350 (diff)
Fix coverity warnings about uninitialized data members
Coverity alerts about uninitialized members. While this might be ok in the code here (ie TreeNode::splitLeft is never used for leaf nodes) it can easily result in undefined behavior and other hard-to-debug issues. Initializing the struct with initializer syntax; compiler explorer indicates that the compile will be able to optimze the calls to avoid duplicate initialization of data members. Change-Id: I0eb5d26e34f466d8c659c1945f02601aef511fbf Fixes: QTBUG-84160 Fixes: QTBUG-84156 Coverity-Id: 218601 Coverity-Id: 11398 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> (cherry picked from commit b7b17e719ea57f2d697bc0f61bffaa0fab910701) Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/testlib/qabstractitemmodeltester.cpp')
0 files changed, 0 insertions, 0 deletions