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:
parent
5e68c84ca6
commit
65ec933f91
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user