diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-20 09:39:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-20 09:39:29 +0200 |
commit | 4fcc5891450a7dca9c8ebae6ff3765f5f060c442 (patch) | |
tree | d10b935e7a77774960fefd93ac306db447cc2bfd /scene/gui/tab_container.cpp | |
parent | 60dcc4f39c0e6289dba691225c002cd6e77be6ba (diff) | |
parent | e28fd07b2bbe78db0f286604a6eb469d8a0664be (diff) |
Merge pull request #49693 from LightningAA/instance-is-not-a-verb
Rename `instance()`->`instantiate()` when it's a verb
Diffstat (limited to 'scene/gui/tab_container.cpp')
-rw-r--r-- | scene/gui/tab_container.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/tab_container.cpp b/scene/gui/tab_container.cpp index acf0641005..133966013b 100644 --- a/scene/gui/tab_container.cpp +++ b/scene/gui/tab_container.cpp @@ -586,7 +586,7 @@ void TabContainer::_refresh_texts() { Control *control = Object::cast_to<Control>(tabs[i]); String text = control->has_meta("_tab_name") ? String(tr(String(control->get_meta("_tab_name")))) : String(tr(control->get_name())); Ref<TextLine> name; - name.instance(); + name.instantiate(); name->set_direction(rtl ? TextServer::DIRECTION_RTL : TextServer::DIRECTION_LTR); name->add_string(text, font, font_size, Dictionary(), TranslationServer::get_singleton()->get_tool_locale()); text_buf.push_back(name); |