qt5base-lts/tests/auto/widgets/itemviews/qtreeview
Marc Mutz 5dc83974f7 tst_QTreeView: Fix UB (invalid downcast, member call)
As reported by UBSan:

  tst_qtreeview.cpp:2187:36: runtime error: downcast of address 0x7ffc15749f20 which does not point to an object of type 'PublicView'
    0x7ffc15749f20: note: object is of type 'QTreeView'

Fix by making the test a friend of QTreeView (and, for
Clang, of QAbstractItemView) instead.

Change-Id: I5b748696ab441a91058f4d45a18bd5ed75a6e560
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-08-01 16:07:50 +00:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
BLACKLIST Blacklist tst_QTreeView::setSortingEnabledChild() on Windows. 2016-02-24 08:20:11 +00:00
qtreeview.pro Re-enable tst_QTreeView::setSortingEnabled on Windows. 2016-02-18 22:54:19 +00:00
tst_qtreeview.cpp tst_QTreeView: Fix UB (invalid downcast, member call) 2016-08-01 16:07:50 +00:00