summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/simpletreemodel
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2014-05-22 02:39:44 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-23 12:10:13 +0200
commitbe0bfe09ee4b99e9ab45c6898949b5d144e77a29 (patch)
tree50f7dda7cbcc4a11cfea9be7cbd800908388fe53 /examples/widgets/itemviews/simpletreemodel
parent9b3b33b11027d0dd013447c3b59939712c432249 (diff)
Guarantee QTextEngine::findItem() returns -1 for invalid strPos
...and check the returned value where it may cause undefined behavior (i.e. negative amount of items or iteration from -1 to n). Change-Id: Ib7bd9ab178526df45b792ad48b91ebbab6be861a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'examples/widgets/itemviews/simpletreemodel')
0 files changed, 0 insertions, 0 deletions