diff options
author | Anton <vob999@bk.ru> | 2014-12-12 19:55:40 +0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-12-12 15:16:24 -0500 |
commit | 10e0cf8b2c27917a3fd45e73a5d835af4313db3b (patch) | |
tree | 906faf9a2e5185b1eb63060af007e070fe0097d0 /src/nodetimer.cpp | |
parent | 83830e8682de23840675a35daa386fa2820fbb7d (diff) | |
download | minetest-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.cpp | 2 |
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; } |