1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-04 17:00:23 +02:00

Use std::string::empty() instead of size() where applicable

This commit is contained in:
Anton
2014-12-12 19:55:40 +05:00
committed by ShadowNinja
parent 83830e8682
commit 10e0cf8b2c
14 changed files with 27 additions and 27 deletions

View File

@ -577,7 +577,7 @@ void Client::step(float dtime)
{
if(sendlist.size() == 255 || i == deleted_blocks.end())
{
if(sendlist.size() == 0)
if(sendlist.empty())
break;
/*
[0] u16 command
@ -813,7 +813,7 @@ void Client::step(float dtime)
}
}
// Sync to server
if(removed_server_ids.size() != 0)
if(!removed_server_ids.empty())
{
std::ostringstream os(std::ios_base::binary);
writeU16(os, TOSERVER_REMOVED_SOUNDS);