summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qscopedpointer.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-02-17 12:02:14 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-22 00:07:31 +0100
commitf3141c58badbd2da9eb42021e9704742c3e52a9b (patch)
treeb8b45bc1639ddeceac9d2fb326944a895794bd6b /src/corelib/tools/qscopedpointer.h
parent4c577aead97abb4e22fedcf57cb9aea6c5bfa623 (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 'src/corelib/tools/qscopedpointer.h')
0 files changed, 0 insertions, 0 deletions