Skip to content

Commit

Permalink
Correct sort messages by file order
Browse files Browse the repository at this point in the history
After correction the initial order is not reversed

Change-Id: I9dc29a782530b1dfbec11be6b70873d45064eff5
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
lugerard committed Mar 4, 2021
1 parent 9ad4a18 commit 5e1022d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/linguist/lupdate/cpp_clang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static void sortMessagesByFileOrder(ClangCppParser::TranslatorMessageVector &mes
[&](const TranslatorMessage &lhs, const TranslatorMessage &rhs) {
auto i = indexByPath.value(lhs.fileName());
auto k = indexByPath.value(rhs.fileName());
return i <= k;
return i < k;
});
}

Expand Down

0 comments on commit 5e1022d

Please sign in to comment.