Skip to content

Commit

Permalink
Fix removing duplicates in find_files_in_path
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoureaux authored and jwrober committed Jan 2, 2024
1 parent 38cdc6c commit a1717d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility/shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ QFileInfoList find_files_in_path(const QStringList &path,
[](const auto &lhs, const auto &rhs) {
return lhs.absoluteFilePath() < rhs.absoluteFilePath();
});
std::unique(files.begin(), files.end());
files.erase(std::unique(files.begin(), files.end()), files.end());
}

// Sort the list by last modification time.
Expand Down

0 comments on commit a1717d2

Please sign in to comment.