mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 11:26:00 +00:00
Use empty() instead of comparing size() with 0.
Issue found by cppcheck.
This commit is contained in:
parent
4ca1afc413
commit
35f0d72454
@ -48,7 +48,7 @@ void playturn_network_adapter::read_from_network()
|
||||
|
||||
bool playturn_network_adapter::is_at_end()
|
||||
{
|
||||
assert(data_.size() > 0);
|
||||
assert(!data_.empty());
|
||||
return this->next_ == data_.back().ordered_end();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user