From 4b4a2545cf8ad3e063a2ae922d193479366a9fa0 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 7 Mar 2015 16:21:19 -0800 Subject: QtDeclarative: fix const correctness in old-style casts Found by GCC's -Wcast-qual. Change-Id: Ia0aac2f09e9245339951ffff13c95df89028fe1c Reviewed-by: Alan Alpert --- src/imports/shaders/scenegraph/qsggeometry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imports') diff --git a/src/imports/shaders/scenegraph/qsggeometry.h b/src/imports/shaders/scenegraph/qsggeometry.h index f61489c9..53c61674 100644 --- a/src/imports/shaders/scenegraph/qsggeometry.h +++ b/src/imports/shaders/scenegraph/qsggeometry.h @@ -136,13 +136,13 @@ inline quint16 *QSGGeometry::indexDataAsUShort() inline const uint *QSGGeometry::indexDataAsUInt() const { Q_ASSERT(m_index_type == GL_UNSIGNED_INT); - return (uint *) indexData(); + return (const uint *) indexData(); } inline const quint16 *QSGGeometry::indexDataAsUShort() const { Q_ASSERT(m_index_type == GL_UNSIGNED_SHORT); - return (quint16 *) indexData(); + return (const quint16 *) indexData(); } inline QSGGeometry::Point2D *QSGGeometry::vertexDataAsPoint2D() -- cgit v1.2.3