Remove Q_ASSERT calls that wrap side-effecting code.
Remove Q_ASSERT calls that wrap side-effecting code.

In release mode builds, code inside Q_ASSERT macros is not executed, so
putting code with side-effects inside Q_ASSERT is not a good idea.

Task-number: QTBUG-17582
Change-Id: I1a5d8ccce666ee7b7f120bf9cbb49e30dac9add4
Reviewed-by: Rohan McGovern
(cherry picked from commit 1750a4351a8125756bf38a53d6d8312993c7d85e)

jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,corngood/qtdeclarative,corngood/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,corngood/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,crobertd/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,crobertd/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,crobertd/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative