Use empty() instead of comparing size() with 0.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2011-03-13 18:59:20 +00:00
parent 9edf5d0c7f
commit ca033d87a6

View file

@ -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."));
}