Skip to content

Commit

Permalink
Skip warning on perfectly valid usecase
Browse files Browse the repository at this point in the history
Change-Id: I83fdd2e7c569ebdfea0d21439b4db6d37c1eafa2
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
  • Loading branch information
Gunnar Sletta authored and Qt by Nokia committed Mar 19, 2012
1 parent 5901943 commit e2caf23
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/quick/particles/qquickparticleemitter.cpp
Expand Up @@ -284,23 +284,17 @@ QQuickParticleExtruder* QQuickParticleEmitter::effectiveExtruder()

void QQuickParticleEmitter::pulse(int milliseconds)
{
if (!particleCount())
qWarning() << "pulse called on an emitter with a particle count of zero";
if (!m_enabled)
m_pulseLeft = milliseconds;
}

void QQuickParticleEmitter::burst(int num)
{
if (!particleCount())
qWarning() << "burst called on an emitter with a particle count of zero";
m_burstQueue << qMakePair(num, QPointF(x(), y()));
}

void QQuickParticleEmitter::burst(int num, qreal x, qreal y)
{
if (!particleCount())
qWarning() << "burst called on an emitter with a particle count of zero";
m_burstQueue << qMakePair(num, QPointF(x, y));
}

Expand Down

0 comments on commit e2caf23

Please sign in to comment.