Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
9edf5d0c7f
commit
ca033d87a6
1 changed files with 1 additions and 1 deletions
|
@ -891,7 +891,7 @@ void connect::side::resolve_random()
|
|||
}
|
||||
}
|
||||
|
||||
if (nonrandom_sides.size() == 0) {
|
||||
if (nonrandom_sides.empty()) {
|
||||
throw config::error(_("Only random sides in the current era."));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue