summaryrefslogtreecommitdiffstats
path: root/editor/scene_tree_editor.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-04-25 16:40:58 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-04-26 14:59:28 +0200
commit5d124c4a8f86176e8adafab3d3703f28e597cb12 (patch)
tree2e0fdd8fc6f7318ed39b72f325c21dbe967f5445 /editor/scene_tree_editor.cpp
parent15a85fe9713668f8ba6143352fd27d419a96ba83 (diff)
downloadredot-engine-5d124c4a8f86176e8adafab3d3703f28e597cb12.tar.gz
Remove uses of `auto` for better readability and online code reviews
The current code style guidelines forbid the use of `auto`. Some uses of `auto` are still present, such as in UWP code (which can't be currently tested) and macros (where removing `auto` isn't easy).
Diffstat (limited to 'editor/scene_tree_editor.cpp')
-rw-r--r--editor/scene_tree_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_editor.cpp b/editor/scene_tree_editor.cpp
index ec37fa53b3..b4f7eda391 100644
--- a/editor/scene_tree_editor.cpp
+++ b/editor/scene_tree_editor.cpp
@@ -277,7 +277,7 @@ bool SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent, bool p_scroll
}
Ref<Texture2D> icon_temp;
- auto signal_temp = BUTTON_SIGNALS;
+ SceneTreeEditorButton signal_temp = BUTTON_SIGNALS;
if (num_connections >= 1 && num_groups >= 1) {
icon_temp = get_theme_icon("SignalsAndGroups", "EditorIcons");
} else if (num_connections >= 1) {