]> git.sesse.net Git - kdenlive/blobdiff - src/documentchecker.cpp
Replace roles into projectlistview. Turn const int into enum.
[kdenlive] / src / documentchecker.cpp
index d527a42b1e1727f452f253c6ddf71abd36d7db1f..042b95cc0c9f52f20978133d57ad893b9b812af6 100644 (file)
@@ -822,8 +822,8 @@ void DocumentChecker::checkStatus()
     int ix = 0;
     QTreeWidgetItem *child = m_ui.treeWidget->topLevelItem(ix);
     while (child) {
-        int status = child->data(0, statusRole).toInt();
-        if (status == CLIPMISSING || status == LUMAMISSING || status == CLIPWRONGDURATION) {
+        int childStatus = child->data(0, statusRole).toInt();
+        if (childStatus == CLIPMISSING || childStatus == LUMAMISSING || childStatus == CLIPWRONGDURATION) {
             status = false;
             break;
         }
@@ -879,7 +879,7 @@ void DocumentChecker::slotDeleteSelected()
             if (deletedIds.contains(e.attribute("id"))) {
                 // Remove clip
                 kdenlivedoc.removeChild(e);
-                i--;
+                --i;
                 j++;
             }
         }
@@ -889,7 +889,7 @@ void DocumentChecker::slotDeleteSelected()
             if (deletedIds.contains(e.attribute("id").section('_', 0, 0)) || deletedIds.contains(e.attribute("id").section(':', 1, 1).section('_', 0, 0))) {
                 // Remove clip
                 mlt.removeChild(e);
-                i--;
+                --i;
             }
         }