mirror of
https://github.com/minetest/minetest.git
synced 2025-07-03 08:20:23 +02:00
Use std::string::empty() instead of size() where applicable
This commit is contained in:
@ -47,7 +47,7 @@ void NodeTimerList::serialize(std::ostream &os, u8 map_format_version) const
|
||||
{
|
||||
if(map_format_version == 24){
|
||||
// Version 0 is a placeholder for "nothing to see here; go away."
|
||||
if(m_data.size() == 0){
|
||||
if(m_data.empty()){
|
||||
writeU8(os, 0); // version
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user