summaryrefslogtreecommitdiff
path: root/src/nodetimer.cpp
diff options
context:
space:
mode:
authorAnton <vob999@bk.ru>2014-12-12 19:55:40 +0500
committerShadowNinja <shadowninja@minetest.net>2014-12-12 15:16:24 -0500
commit10e0cf8b2c27917a3fd45e73a5d835af4313db3b (patch)
tree906faf9a2e5185b1eb63060af007e070fe0097d0 /src/nodetimer.cpp
parent83830e8682de23840675a35daa386fa2820fbb7d (diff)
downloadminetest-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.tar.gz
minetest-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.tar.bz2
minetest-10e0cf8b2c27917a3fd45e73a5d835af4313db3b.zip
Use std::string::empty() instead of size() where applicable
Diffstat (limited to 'src/nodetimer.cpp')
-rw-r--r--src/nodetimer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodetimer.cpp b/src/nodetimer.cpp
index d4971c873..790b46076 100644
--- a/src/nodetimer.cpp
+++ b/src/nodetimer.cpp
@@ -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;
}