From ba102bece5052c7f04c1ebf8b1f3d0973793dfe0 Mon Sep 17 00:00:00 2001 From: Yann Bodson Date: Fri, 10 Feb 2012 14:48:10 +1000 Subject: [PATCH] Remove clang warnings in particles Change-Id: I4fb92a76143e5b9b607bbf9461b27ade3776edf0 Reviewed-by: Alan Alpert --- src/quick/particles/qquickwander.cpp | 13 +++++++------ src/quick/particles/qquickwander_p.h | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/quick/particles/qquickwander.cpp b/src/quick/particles/qquickwander.cpp index f2c0184..ec86323 100644 --- a/src/quick/particles/qquickwander.cpp +++ b/src/quick/particles/qquickwander.cpp @@ -109,12 +109,13 @@ WanderData* QQuickWanderAffector::getData(int idx) return d; } -void QQuickWanderAffector::reset(int systemIdx) -{ - if (m_wanderData.contains(systemIdx)) - delete m_wanderData[systemIdx]; - m_wanderData.remove(systemIdx); -} +// TODO: see below +//void QQuickWanderAffector::reset(int systemIdx) +//{ +// if (m_wanderData.contains(systemIdx)) +// delete m_wanderData[systemIdx]; +// m_wanderData.remove(systemIdx); +//} bool QQuickWanderAffector::affectParticle(QQuickParticleData* data, qreal dt) { diff --git a/src/quick/particles/qquickwander_p.h b/src/quick/particles/qquickwander_p.h index 916eef0..d71e55d 100644 --- a/src/quick/particles/qquickwander_p.h +++ b/src/quick/particles/qquickwander_p.h @@ -75,7 +75,7 @@ public: explicit QQuickWanderAffector(QQuickItem *parent = 0); ~QQuickWanderAffector(); - virtual void reset(int systemIdx); +// virtual void reset(int systemIdx); qreal xVariance() const { -- 2.7.4