QCompleter: QMatchData: init all fields in default ctor

Found by UBSan:

  src/widgets/util/qcompleter_p.h:130:8: runtime error: load of value 249, which is not a valid value for type 'bool'

Change-Id: I0529e54e17a6f4d6add91786a2d5687f2d043531
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
This commit is contained in:
Marc Mutz 2016-03-05 11:09:52 +01:00
parent 5e68c84ca6
commit 65ec933f91

View File

@ -122,7 +122,7 @@ private:
};
struct QMatchData {
QMatchData() : exactMatchIndex(-1) { }
QMatchData() : exactMatchIndex(-1), partial(false) { }
QMatchData(const QIndexMapper& indices, int em, bool p) :
indices(indices), exactMatchIndex(em), partial(p) { }
QIndexMapper indices;