From 1c1c97cbd1d7913ac12bf550ec02c97f843a0fd3 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 20 Aug 2017 13:30:50 +0200 Subject: Modernize source code: last part (#6285) * Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes --- src/script/cpp_api/s_node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script/cpp_api/s_node.h') diff --git a/src/script/cpp_api/s_node.h b/src/script/cpp_api/s_node.h index 92f07cee7..5b6509c83 100644 --- a/src/script/cpp_api/s_node.h +++ b/src/script/cpp_api/s_node.h @@ -32,8 +32,8 @@ class ScriptApiNode public ScriptApiNodemeta { public: - ScriptApiNode(); - virtual ~ScriptApiNode(); + ScriptApiNode() = default; + virtual ~ScriptApiNode() = default; bool node_on_punch(v3s16 p, MapNode node, ServerActiveObject *puncher, PointedThing pointed); -- cgit v1.2.3