summaryrefslogtreecommitdiff
path: root/src/clientsimpleobject.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-08-17 20:23:54 +0200
committerGitHub <noreply@github.com>2017-08-17 20:23:54 +0200
commitc738d1eeabbbe9164a25f6b69bc7ec1a3b44b051 (patch)
tree6a7c153cd4e1f468c627ab5811e76fc7c77f9a44 /src/clientsimpleobject.h
parent9bd18874a14774f2585955719b77f8894d6e6618 (diff)
downloadminetest-c738d1eeabbbe9164a25f6b69bc7ec1a3b44b051.tar.gz
minetest-c738d1eeabbbe9164a25f6b69bc7ec1a3b44b051.tar.bz2
minetest-c738d1eeabbbe9164a25f6b69bc7ec1a3b44b051.zip
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
Diffstat (limited to 'src/clientsimpleobject.h')
-rw-r--r--src/clientsimpleobject.h5
1 files changed, 3 insertions, 2 deletions
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) {}
};