summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-02-12 15:13:57 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-02-14 15:13:39 +0100
commit6a56862a2214e4ff1743fc3ce97427a30475b48a (patch)
tree17268e32984c74650bd543d3880c53b7e4edb238 /qmake/generators
parent115e39f9be99069dcb96579064e78b9a8f5468fc (diff)
QAbstractItemView: do not request illegal model indexes
If a model is empty, there is no index (0, 0); requesting it is undefined behavior. Rather than protecting the calls with checks on rowCount/columnCount, remove the Q_ASSERTs altogether: they're trying to do some basic sanity checks on the model, something that doesn't belong to a view (but, say, to QAbstractItemModelTester). Change-Id: I0ea25604fdcf524a10f5922a03a4d0700447f6a7 Reviewed-by: Andre Somers <andre.somers@kdab.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'qmake/generators')
0 files changed, 0 insertions, 0 deletions