Merge pull request #92723 from AThousandShips/incorrect_sname
Fix some incorrect uses of `String` over `StringName`
This commit is contained in:
commit
5f1184e93f
|
@ -291,7 +291,7 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
|
||||||
const PackedStringArray warnings = p_node->get_configuration_warnings();
|
const PackedStringArray warnings = p_node->get_configuration_warnings();
|
||||||
const int num_warnings = warnings.size();
|
const int num_warnings = warnings.size();
|
||||||
if (num_warnings > 0) {
|
if (num_warnings > 0) {
|
||||||
String warning_icon;
|
StringName warning_icon;
|
||||||
if (num_warnings == 1) {
|
if (num_warnings == 1) {
|
||||||
warning_icon = SNAME("NodeWarning");
|
warning_icon = SNAME("NodeWarning");
|
||||||
} else if (num_warnings <= 3) {
|
} else if (num_warnings <= 3) {
|
||||||
|
|
|
@ -360,9 +360,9 @@ void EditorPropertySizeFlags::setup(const Vector<String> &p_options, bool p_vert
|
||||||
}
|
}
|
||||||
|
|
||||||
Control *gui_base = EditorNode::get_singleton()->get_gui_base();
|
Control *gui_base = EditorNode::get_singleton()->get_gui_base();
|
||||||
String wide_preset_icon = SNAME("ControlAlignHCenterWide");
|
StringName wide_preset_icon = SNAME("ControlAlignHCenterWide");
|
||||||
String begin_preset_icon = SNAME("ControlAlignCenterLeft");
|
StringName begin_preset_icon = SNAME("ControlAlignCenterLeft");
|
||||||
String end_preset_icon = SNAME("ControlAlignCenterRight");
|
StringName end_preset_icon = SNAME("ControlAlignCenterRight");
|
||||||
if (vertical) {
|
if (vertical) {
|
||||||
wide_preset_icon = SNAME("ControlAlignVCenterWide");
|
wide_preset_icon = SNAME("ControlAlignVCenterWide");
|
||||||
begin_preset_icon = SNAME("ControlAlignCenterTop");
|
begin_preset_icon = SNAME("ControlAlignCenterTop");
|
||||||
|
|
Loading…
Reference in New Issue