Commit 3c21cacc authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Clazy warning: container inside loop

parent 3a388a6e
Pipeline #60903 failed with stage
in 3 minutes and 55 seconds
......@@ -435,7 +435,7 @@ void ReparentingModel::removeDuplicates(const QModelIndex &sourceIndex)
void ReparentingModel::onSourceRowsInserted(const QModelIndex &parent, int start, int end)
{
// qCDebug(KORGANIZER_LOG) << objectName() << parent << start << end;
QModelIndexList reparented;
for (int row = start; row <= end; row++) {
QModelIndex sourceIndex = sourceModel()->index(row, 0, parent);
Q_ASSERT(sourceIndex.isValid());
......@@ -450,7 +450,7 @@ void ReparentingModel::onSourceRowsInserted(const QModelIndex &parent, int start
// Remove any duplicates that we are going to replace
removeDuplicates(sourceIndex);
QModelIndexList reparented;
reparented.clear();
// Check for children to reparent
{
const auto descendantsItem = descendants(sourceIndex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment