diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-09-24 15:21:19 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-09-24 18:01:37 +0200 |
commit | 3291e0a77c10a92a63173d9ece4f83661f849ba9 (patch) | |
tree | 6239ef4c0a84174888bd71df38b2348b74637f05 /examples/sql | |
parent | 44a0e972a0fc6787f1d275a457c2bb0a0d10aff8 (diff) |
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>
Diffstat (limited to 'examples/sql')
0 files changed, 0 insertions, 0 deletions