mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Use std::string::empty() instead of size() where applicable
This commit is contained in:
parent
83830e8682
commit
10e0cf8b2c
14 changed files with 27 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue