mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 04:43:56 -07:00
[Fix-Warnings] Remove redundant parentheses
This commit is contained in:
parent
858361e6d3
commit
8ddbdf31f9
75 changed files with 269 additions and 269 deletions
|
|
@ -16,7 +16,7 @@ int levenshteinDistance(const QString &s1, const QString &s2)
|
|||
|
||||
for (int i = 1; i <= len1; i++) {
|
||||
for (int j = 1; j <= len2; j++) {
|
||||
int cost = (s1[i - 1] == s2[j - 1]) ? 0 : 1;
|
||||
int cost = s1[i - 1] == s2[j - 1] ? 0 : 1;
|
||||
dp[i][j] = std::min({dp[i - 1][j] + 1, dp[i][j - 1] + 1, dp[i - 1][j - 1] + cost});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue