Remove useless else

This commit is contained in:
Jonas Kvinge
2024-06-12 17:38:58 +02:00
parent 93df859aa4
commit b233600b8c
32 changed files with 178 additions and 211 deletions

View File

@@ -280,19 +280,19 @@ bool CollectionFilter::FieldNumericalValueMatchesData(const T value, const QStri
if (foperator == QLatin1Char('=') || foperator == QLatin1String("==")) {
return data == value;
}
else if (foperator == QLatin1String("!=") || foperator == QLatin1String("<>")) {
if (foperator == QLatin1String("!=") || foperator == QLatin1String("<>")) {
return data != value;
}
else if (foperator == QLatin1Char('<')) {
if (foperator == QLatin1Char('<')) {
return data < value;
}
else if (foperator == QLatin1Char('>')) {
if (foperator == QLatin1Char('>')) {
return data > value;
}
else if (foperator == QLatin1String(">=")) {
if (foperator == QLatin1String(">=")) {
return data >= value;
}
else if (foperator == QLatin1String("<=")) {
if (foperator == QLatin1String("<=")) {
return data <= value;
}