Fix more casts that dropped the constness.
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 13 May 2015 21:20:57 +0000 (06:20 +0900)
committerThiago Macieira <thiago.macieira@intel.com>
Tue, 7 Jul 2015 16:16:51 +0000 (16:16 +0000)
Found with GCC's -Wcast-qual

Change-Id: I66a35ce5f88941f29aa6ffff13dde502fccefb1d
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/quick/util/qquickanimatorjob.cpp

index 8b617e5..2a8e3c2 100644 (file)
@@ -136,7 +136,7 @@ void QQuickAnimatorProxyJob::updateState(QAbstractAnimationJob::State newState,
 
 void QQuickAnimatorProxyJob::debugAnimation(QDebug d) const
 {
-    d << "QuickAnimatorProxyJob("<< hex << (void *) this << dec
+    d << "QuickAnimatorProxyJob("<< hex << (const void *) this << dec
       << "state:" << state() << "duration:" << duration()
       << "proxying: (" << job() << ')';
 }
@@ -225,7 +225,7 @@ QQuickAnimatorJob::QQuickAnimatorJob()
 
 void QQuickAnimatorJob::debugAnimation(QDebug d) const
 {
-    d << "QuickAnimatorJob(" << hex << (void *) this << dec
+    d << "QuickAnimatorJob(" << hex << (const void *) this << dec
       << ") state:" << state() << "duration:" << duration()
       << "target:" << m_target << "value:" << m_value;
 }