diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-02-17 12:02:14 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-22 00:07:31 +0100 |
commit | f3141c58badbd2da9eb42021e9704742c3e52a9b (patch) | |
tree | b8b45bc1639ddeceac9d2fb326944a895794bd6b /dist/changes-4.1.4 | |
parent | 4c577aead97abb4e22fedcf57cb9aea6c5bfa623 (diff) |
QtCore: add constexpr to geometric classes
This turns code like QPoint(12, 12) into a compile-time
expression, under a C++11 compiler, and allows to define
arrays of these types that end up in read-only memory,
just like PODs would.
Some constructors and QLine::pointAt() needed to be
adjusted to fit into the empty-body/only-return-expression
requirement for constexpr constructors/functions.
Change-Id: Id11ee2752c948930c3e40a91d1f6d7c97db7a373
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'dist/changes-4.1.4')
0 files changed, 0 insertions, 0 deletions