kopia lustrzana https://gitlab.com/tomaszg/geostat
Cppcheck: simplify condition
rodzic
a2e4fd3acf
commit
99e322d2a3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue