mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-29 12:15:18 +01:00
Use std::string::empty() instead of size() where applicable
This commit is contained in:
@@ -83,7 +83,7 @@ void NodeMetadataList::serialize(std::ostream &os) const
|
||||
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