From ad148587dcf5244c2d2011dba339786c765c54c4 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 4 Nov 2020 16:19:54 +0100 Subject: Make Lint Happy --- src/staticobject.cpp | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'src/staticobject.cpp') diff --git a/src/staticobject.cpp b/src/staticobject.cpp index 5ccb7baf5..79762e003 100644 --- a/src/staticobject.cpp +++ b/src/staticobject.cpp @@ -21,9 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "util/serialize.h" #include "server/serveractiveobject.h" -StaticObject::StaticObject(const ServerActiveObject *s_obj, const v3f &pos_): - type(s_obj->getType()), - pos(pos_) +StaticObject::StaticObject(const ServerActiveObject *s_obj, const v3f &pos_) : + type(s_obj->getType()), pos(pos_) { s_obj->getStaticData(&data); } @@ -35,7 +34,7 @@ void StaticObject::serialize(std::ostream &os) // pos writeV3F1000(os, pos); // data - os< U16_MAX) { errorstream << "StaticObjectList::serialize(): " - << "too many objects (" << count << ") in list, " - << "not writing them to disk." << std::endl; - writeU16(os, 0); // count = 0 + << "too many objects (" << count << ") in list, " + << "not writing them to disk." << std::endl; + writeU16(os, 0); // count = 0 return; } writeU16(os, count); @@ -79,10 +79,10 @@ void StaticObjectList::deSerialize(std::istream &is) { if (m_active.size()) { errorstream << "StaticObjectList::deSerialize(): " - << "deserializing objects while " << m_active.size() - << " active objects already exist (not cleared). " - << m_stored.size() << " stored objects _were_ cleared" - << std::endl; + << "deserializing objects while " << m_active.size() + << " active objects already exist (not cleared). " + << m_stored.size() << " stored objects _were_ cleared" + << std::endl; } m_stored.clear(); @@ -90,10 +90,9 @@ void StaticObjectList::deSerialize(std::istream &is) u8 version = readU8(is); // count u16 count = readU16(is); - for(u16 i = 0; i < count; i++) { + for (u16 i = 0; i < count; i++) { StaticObject s_obj; s_obj.deSerialize(is, version); m_stored.push_back(s_obj); } } - -- cgit v1.2.3