diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-03-07 16:21:19 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-07-10 01:30:18 +0000 |
commit | 4b4a2545cf8ad3e063a2ae922d193479366a9fa0 (patch) | |
tree | c7618a2b9f1897542ea3b4fa69a6baf24debfe28 /src/imports | |
parent | c0c8c483182e035e1fbdad593ce2f033a710f0c3 (diff) |
QtDeclarative: fix const correctness in old-style casts
Found by GCC's -Wcast-qual.
Change-Id: Ia0aac2f09e9245339951ffff13c95df89028fe1c
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/shaders/scenegraph/qsggeometry.h | 4 |
1 files changed, 2 insertions, 2 deletions
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() |