From 6e1c4c201437fdcdb9cbc3741d46b9c860a6e4a8 Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Fri, 9 Jun 2023 21:39:52 +0200 Subject: [PATCH] Merge pull request #7490 from paddy-exe/syntaxfixeees --- tutorials/scripting/gdextension/gdextension_cpp_example.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorials/scripting/gdextension/gdextension_cpp_example.rst b/tutorials/scripting/gdextension/gdextension_cpp_example.rst index 8c2288d33..aea092ab9 100644 --- a/tutorials/scripting/gdextension/gdextension_cpp_example.rst +++ b/tutorials/scripting/gdextension/gdextension_cpp_example.rst @@ -496,7 +496,7 @@ code: double speed; ... void _process(double delta) override; - void set_speed(double p_speed); + void set_speed(const double p_speed); double get_speed() const; ... @@ -512,7 +512,7 @@ showing the methods that have changed so don't remove anything we're omitting: ClassDB::add_property("GDExample", PropertyInfo(Variant::FLOAT, "speed", PROPERTY_HINT_RANGE, "0,20,0.01"), "set_speed", "get_speed"); } - void GDExample::GDExample() { + GDExample::GDExample() { time_passed = 0.0; amplitude = 10.0; speed = 1.0; @@ -531,7 +531,7 @@ showing the methods that have changed so don't remove anything we're omitting: ... - void GDExample::set_speed(double p_speed) { + void GDExample::set_speed(const double p_speed) { speed = p_speed; }