diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-07-10 11:34:39 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-07-10 13:56:54 +0100 |
commit | 26fcf2b04ca48566cee6cf32a2a40e8ea1e40eb4 (patch) | |
tree | 273aace3a50a8d14f9b13f1d991bb9048cef6131 /main/tests | |
parent | ad9e5ae9848c8baf6fe462cf22d7f5677f478174 (diff) |
Add override keywords.
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/test_physics_2d.cpp | 6 | ||||
-rw-r--r-- | main/tests/test_physics_3d.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/main/tests/test_physics_2d.cpp b/main/tests/test_physics_2d.cpp index 6cb9bf7b60..c82ae920bc 100644 --- a/main/tests/test_physics_2d.cpp +++ b/main/tests/test_physics_2d.cpp @@ -315,7 +315,7 @@ protected: } public: - virtual void init() { + virtual void init() override { RenderingServer *vs = RenderingServer::get_singleton(); PhysicsServer2D *ps = PhysicsServer2D::get_singleton(); @@ -389,10 +389,10 @@ public: //_add_plane(Vector2(-1,0).normalized(),-600); } - virtual bool idle(float p_time) { + virtual bool idle(float p_time) override { return false; } - virtual void finish() { + virtual void finish() override { } TestPhysics2DMainLoop() {} diff --git a/main/tests/test_physics_3d.cpp b/main/tests/test_physics_3d.cpp index dfe2e946cf..72de2041e4 100644 --- a/main/tests/test_physics_3d.cpp +++ b/main/tests/test_physics_3d.cpp @@ -269,7 +269,7 @@ public: virtual void request_quit() { quit = true; } - virtual void init() { + virtual void init() override { ofs_x = ofs_y = 0; init_shapes(); @@ -310,7 +310,7 @@ public: test_fall(); quit = false; } - virtual bool iteration(float p_time) { + virtual bool iteration(float p_time) override { if (mover.is_valid()) { static float joy_speed = 10; PhysicsServer3D *ps = PhysicsServer3D::get_singleton(); @@ -328,7 +328,7 @@ public: return quit; } - virtual void finish() { + virtual void finish() override { } void test_joint() { @@ -396,7 +396,7 @@ public: create_static_plane(Plane(Vector3(0, 1, 0), -1)); } - virtual bool idle(float p_time) { + virtual bool idle(float p_time) override { return false; } |