bool forwardMove = newPos.x() > pos().x();
int offset = 0;
if (!items.isEmpty()) {
- for (int i = 0; i < items.count(); i++) {
+ for (int i = 0; i < items.count(); ++i) {
if (!items.at(i)->isEnabled()) continue;
if (items.at(i)->type() == type()) {
// Collision!
bool Transition::hasGeometry()
{
QDomNodeList namenode = m_parameters.elementsByTagName("parameter");
- for (int i = 0; i < namenode.count() ; i++) {
+ for (int i = 0; i < namenode.count() ; ++i) {
QDomElement pa = namenode.item(i).toElement();
if (pa.attribute("type") == "geometry") return true;
}
QDomElement pa;
bool modified = false;
QDomNodeList namenode = m_parameters.elementsByTagName("parameter");
- for (int i = 0; i < namenode.count() ; i++) {
+ for (int i = 0; i < namenode.count() ; ++i) {
pa = namenode.item(i).toElement();
if (pa.attribute("type") == "geometry") {
keyframes = pa.attribute("value");
// Transition was expanded, check if we had a keyframe at end position
foreach(QString pos, values) {
if (!pos.contains('=')) {
- i++;
+ ++i;
continue;
}
frame = pos.section('=', 0, 0).toInt();
pa.setAttribute("value", values.join(";"));
return true;
}
- i++;
+ ++i;
}
return false;
}
// Transition was shortened, check for out of bounds keyframes
foreach(const QString &pos, values) {
if (!pos.contains('=')) {
- i++;
+ ++i;
continue;
}
frame = pos.section('=', 0, 0).toInt();
modified = true;
break;
}
- i++;
+ ++i;
}
}
if (modified) {