godot/modules/visual_script
Hein-Pieter van Braam cacced7e50 Convert Object::cast_to() to the static version
Currently we rely on some undefined behavior when Object->cast_to() gets
called with a Null pointer. This used to work fine with GCC < 6 but
newer versions of GCC remove all codepaths in which the this pointer is
Null. However, the non-static cast_to() was supposed to be null safe.

This patch makes cast_to() Null safe and removes the now redundant Null
checks where they existed.

It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-24 23:08:24 +02:00
..
SCsub SCsub: Add python shebang as a hint for syntax highlighting 2016-10-17 20:10:46 +02:00
config.py style: Fix PEP8 blank lines issues in Python files 2016-11-01 00:35:16 +01:00
register_types.cpp -Many fixes to VisualScript, fixed property names, etc. 2017-06-30 21:35:05 -03:00
register_types.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
visual_script.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visual_script.h Updated function argument names 2017-08-12 15:12:49 -04:00
visual_script_builtin_funcs.cpp Add closest_power_of_2 func and implement mix_rate/latency on OS X 2017-08-17 19:51:13 -03:00
visual_script_builtin_funcs.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
visual_script_editor.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visual_script_editor.h VisualScriptEditor: Remove Node when canceling PropertySelector. 2017-08-22 21:56:18 +02:00
visual_script_expression.cpp Removed unnecessary returns and break statements 2017-08-22 13:01:57 -04:00
visual_script_expression.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
visual_script_flow_control.cpp Clang-formatting *.cpp and *.h (some files excluded) 2017-07-22 18:14:08 +07:00
visual_script_flow_control.h -Many fixes to VisualScript, fixed property names, etc. 2017-06-30 21:35:05 -03:00
visual_script_func_nodes.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visual_script_func_nodes.h Updated function argument names 2017-08-12 15:12:49 -04:00
visual_script_nodes.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visual_script_nodes.h ClassDB: Provide the enum name of integer constants 2017-08-20 22:07:43 +02:00
visual_script_yield_nodes.cpp Convert Object::cast_to() to the static version 2017-08-24 23:08:24 +02:00
visual_script_yield_nodes.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00