Go to file
Marc Mutz 3291e0a77c QModelIndex: store quintptr instead of void*
Rationale:
1. Comparing pointers that don't point the same array is undefined behaviour, IIRC,
   and op== and op< did that.
2. The functions that cast to/from the storage type can't be constexpr. It makes
   more sense to have the quintptr functions be constexpr (they have a fighting
   chance to actually get passed something constant) than it is to have the void*
   functions constexpr. Thus, the storage type should be quintptr.

Also prepare op< to be constexpr-compatible.

Change-Id: I4b2d4a0ec8ca80d619d272bf07c57887cbd11c2f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
2012-09-24 18:01:37 +02:00
bin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
config.tests Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
dist QTestLib: clean up qCompare specialisation/overload mix 2012-09-23 23:29:42 +02:00
doc Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
examples Use QStringList::join(QChar) overload where applicable [examples] 2012-09-23 23:30:03 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs When trying to run cmake, don't show stderr output. 2012-09-24 18:01:14 +02:00
qmake Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
src QModelIndex: store quintptr instead of void* 2012-09-24 18:01:37 +02:00
tests Implement viewOptions() logic in QListViewPrivate. 2012-09-24 18:01:07 +02:00
tools Use QStringList::join(QChar) overload where applicable [tools] 2012-09-23 23:30:33 +02:00
util Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
.gitattributes Update the git-archive export options 2012-09-07 15:39:31 +02:00
.gitignore Updated .gitignore 2012-08-18 13:59:11 +02:00
.tag Update the git-archive export options 2012-09-07 15:39:31 +02:00
configure configure: Update contact information for commercial users 2012-09-22 23:40:24 +02:00
configure.bat Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.BSD Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.FDL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
header.LGPL-ONLY Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
INSTALL Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
LGPL_EXCEPTION.txt Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.GPL Add the LICENSE.GPL file to the module referenced from license headers 2012-05-20 22:41:08 +02:00
LICENSE.LGPL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
LICENSE.PREVIEW.COMMERCIAL Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtbase.pro Install right version of tools when x-compiling. 2012-07-17 12:52:48 +02:00
sync.profile Revert "Move QWindowSystemInterface out of qpa." 2012-08-03 00:38:09 +02:00