Skip to content

Commit

Permalink
Use empty() instead of comparing size() with 0.
Browse files Browse the repository at this point in the history
Issue found by cppcheck.
  • Loading branch information
mordante committed Apr 12, 2014
1 parent 4ca1afc commit 35f0d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/playturn_network_adapter.cpp
Expand Up @@ -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();
}

Expand Down

0 comments on commit 35f0d72

Please sign in to comment.