mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add const lvalue ref to editor/* container parameters
This commit is contained in:
parent
bb6b06c813
commit
1638c1b28f
119 changed files with 397 additions and 397 deletions
|
|
@ -266,7 +266,7 @@ Vector<EditorPlugin *> EditorData::get_handling_sub_editors(Object *p_object) {
|
|||
return sub_plugins;
|
||||
}
|
||||
|
||||
EditorPlugin *EditorData::get_editor_by_name(String p_name) {
|
||||
EditorPlugin *EditorData::get_editor_by_name(const String &p_name) {
|
||||
for (int i = editor_plugins.size() - 1; i > -1; i--) {
|
||||
if (editor_plugins[i]->get_name() == p_name) {
|
||||
return editor_plugins[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue