Add C++11 constexpr to 3D vector classes
authorAlex Blasche <alexander.blasche@digia.com>
Thu, 14 Nov 2013 15:10:04 +0000 (16:10 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 15 Nov 2013 18:03:40 +0000 (19:03 +0100)
commitae4e905993a4263431824ed2083cd86193deadcd
treeba73fd98cddca330f5406fb54520fa76e1461d21
parent3d2691ae77a5d18a8788540f4e7bf1352261a565
Add C++11 constexpr to 3D vector classes

This turns QVector2D(1,1) into compile-time expressions when using
a C++11 compiler.

Change-Id: Ifea2d1cdfd5481300f9a5a0c7bbe8bfe9115c636
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/gui/math3d/qvector2d.h
src/gui/math3d/qvector3d.h
src/gui/math3d/qvector4d.h