Cppcheck: simplify condition

sql-rework
Tomasz Golinski 2020-07-06 13:46:43 +02:00
rodzic a2e4fd3acf
commit 99e322d2a3
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -288,7 +288,7 @@ int main(int argc, char** argv) {
dates[i->date]++;
sorted_caches.insert({ i->date_t, &*i });
if (i->type != "Moving" && i->type != "Own" && (!get_not_found || !exclude_quiz || i->type != "Quiz")) {
if (i->type != "Moving" && i->type != "Own") {
sorted_fcaches.insert({ i->date_t, &*i });
fcc.push_back(&*i);
}
@ -304,7 +304,7 @@ int main(int argc, char** argv) {
std::sort(caches_by_finds.begin(), caches_by_finds.end(), [&](const Cache* a, const Cache* b) { return a->founds > b->founds; });
} else {
for (auto& i : cc) {
if (i.type != "Moving" && i.type != "Own" && (!get_not_found || !exclude_quiz || i.type != "Quiz")) {
if (i.type != "Moving" && i.type != "Own" && (!exclude_quiz || i.type != "Quiz")) {
fcc.push_back(&i);
}
}