QModelIndex: add constexpr
authorMarc Mutz <marc.mutz@kdab.com>
Fri, 24 Feb 2012 16:41:31 +0000 (17:41 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 16:01:45 +0000 (18:01 +0200)
commitd16efdfc0ef5f998d58dbfe6015a6f0a961d0fae
treed5580a618838b9ed42e00c935e342e9ea234f8d6
parent3291e0a77c10a92a63173d9ece4f83661f849ba9
QModelIndex: add constexpr

The functions dealing with the void* internalPointer() can't be
constexpr on GCC 4.6 and Clang 3.2-trunk, even though GCC 4.8-trunk
accepts it, because of the casts required.

Change-Id: Id04105312da3d0c7632f7df06a34bc5a71120b32
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/itemmodels/qabstractitemmodel.h