aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles/qquickgravity.cpp
diff options
context:
space:
mode:
authorPetr Nejedly <pnejedly@blackberry.com>2013-07-24 08:13:18 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-07-26 14:06:15 +0200
commit88054e44722c9fd5aab90928ee8052ee054053a3 (patch)
treeaf967a4fc80b9772ddc2f2b06b24f6f754c948aa /src/particles/qquickgravity.cpp
parent07860794da5863610f38295c9d517fc457c5de95 (diff)
std:: fixes to make qtdeclarative closer to compilable with QNX NDK.
Math functions come in std:: when #included through <cmath> Change-Id: I62550e5c23cb6f4464f2c2f5c4188a91b3512d1a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/particles/qquickgravity.cpp')
-rw-r--r--src/particles/qquickgravity.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particles/qquickgravity.cpp b/src/particles/qquickgravity.cpp
index 34fff57cbc..c7856f30b9 100644
--- a/src/particles/qquickgravity.cpp
+++ b/src/particles/qquickgravity.cpp
@@ -88,8 +88,8 @@ bool QQuickGravityAffector::affectParticle(QQuickParticleData *d, qreal dt)
return false;
if (m_needRecalc) {
m_needRecalc = false;
- m_dx = m_magnitude * cos(m_angle * CONV);
- m_dy = m_magnitude * sin(m_angle * CONV);
+ m_dx = m_magnitude * std::cos(m_angle * CONV);
+ m_dy = m_magnitude * std::sin(m_angle * CONV);
}
d->setInstantaneousVX(d->curVX() + m_dx*dt);