From c738d1eeabbbe9164a25f6b69bc7ec1a3b44b051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Thu, 17 Aug 2017 20:23:54 +0200 Subject: clientobject, clouds, collision, clientsimpleobject: code modernization (#6260) * clientobject, clouds, collision, clientsimpleobject: code modernization * use range-based for loops * simplify some tests * various code style fixes * use emplace_back instead of push_back when necessary * use auto on some iterators * use default operator when needed * unroll v3s16 creation on collisionMoveSimple --- src/clientsimpleobject.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/clientsimpleobject.h') diff --git a/src/clientsimpleobject.h b/src/clientsimpleobject.h index 3e7704757..6cdeaeff9 100644 --- a/src/clientsimpleobject.h +++ b/src/clientsimpleobject.h @@ -29,8 +29,9 @@ protected: public: bool m_to_be_removed = false; - ClientSimpleObject() {} - virtual ~ClientSimpleObject() {} + ClientSimpleObject() = default; + virtual ~ClientSimpleObject() = default; + virtual void step(float dtime) {} }; -- cgit v1.2.3