mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03: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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user