mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Optimize Object::cast_to by assuming no virtual and multiple inheritance, gaining 8x throughput over dynamic_cast.
Add `-Wvirtual-inheritance` to compiler warnings as a sanity check.
This commit is contained in:
parent
594d64ec24
commit
dd9dc75a83
3 changed files with 33 additions and 3 deletions
|
|
@ -30,6 +30,8 @@
|
|||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
|
||||
#include "scene/gui/line_edit.h"
|
||||
|
||||
void AcceptDialog::_register_text_enter_bind_compat_89419(Control *p_line_edit) {
|
||||
register_text_enter(Object::cast_to<LineEdit>(p_line_edit));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue