summaryrefslogtreecommitdiffstats
path: root/examples/qt3d
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-10-20 19:28:28 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-21 03:25:17 +0200
commit06f20f5e0c4b3c25a2cc9c9812fff81d73e317d7 (patch)
tree7c7db67a42bf2be97f49844e5e6cb25940004d0e /examples/qt3d
parentad44118d1954381f9311c94e83889025b18a54b0 (diff)
Compile with C++0x
Change-Id: Ic8820362cdbc8fa662a5e97db841656cf38d1baa Reviewed-by: Patrick Burke <patrick.burke@nokia.com>
Diffstat (limited to 'examples/qt3d')
-rw-r--r--examples/qt3d/geometry/geometry.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/geometry/geometry.cpp b/examples/qt3d/geometry/geometry.cpp
index a54b7ca75..890b6dfe3 100644
--- a/examples/qt3d/geometry/geometry.cpp
+++ b/examples/qt3d/geometry/geometry.cpp
@@ -48,7 +48,7 @@
// icosahedron is defined by phi, derived from the golden section
// http://en.wikipedia.org/wiki/Icosahedron#Cartesian_coordinates
-const qreal phi = 1.618033988749894848f;
+const float phi = 1.618033988749894848f;
Geometry::Geometry(QObject *parent, QGLMaterialCollection *materials)
: QGLSceneNode(parent)