From 88054e44722c9fd5aab90928ee8052ee054053a3 Mon Sep 17 00:00:00 2001 From: Petr Nejedly Date: Wed, 24 Jul 2013 08:13:18 -0700 Subject: std:: fixes to make qtdeclarative closer to compilable with QNX NDK. Math functions come in std:: when #included through Change-Id: I62550e5c23cb6f4464f2c2f5c4188a91b3512d1a Reviewed-by: Simon Hausmann --- src/particles/qquickimageparticle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/particles/qquickimageparticle.cpp') diff --git a/src/particles/qquickimageparticle.cpp b/src/particles/qquickimageparticle.cpp index 0145ce4edb..424352d8e8 100644 --- a/src/particles/qquickimageparticle.cpp +++ b/src/particles/qquickimageparticle.cpp @@ -1654,9 +1654,9 @@ void QQuickImageParticle::spritesUpdate(qreal time) qreal frame = (time - datum->animT)/(datum->frameDuration / 1000.0); frame = qBound((qreal)0.0, frame, (qreal)((qreal)datum->frameCount - 1.0));//Stop at count-1 frames until we have between anim interpolation if (m_spritesInterpolate) - progress = modf(frame,&frameAt); + progress = std::modf(frame,&frameAt); else - modf(frame,&frameAt); + std::modf(frame,&frameAt); } else { datum->frameAt++; if (datum->frameAt >= datum->frameCount){ -- cgit v1.2.3