summaryrefslogtreecommitdiffstats
path: root/editor/scene_tree_dock.cpp
diff options
context:
space:
mode:
authorWilson E. Alvarez <wilson.e.alvarez@rubonnek.com>2023-11-18 17:40:56 -0500
committerWilson E. Alvarez <wilson.e.alvarez@rubonnek.com>2023-12-16 13:36:44 -0500
commita3cb1b096fcecad03562205bd285ebefc816c64a (patch)
tree3966ab0682c6269c60de7b438d51b30ae164ffde /editor/scene_tree_dock.cpp
parent2d0ee20ff30461b6b10f6fdfba87511a0ebc6642 (diff)
downloadredot-engine-a3cb1b096fcecad03562205bd285ebefc816c64a.tar.gz
Add const references detected by clang-tidy
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r--editor/scene_tree_dock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index c12e53fc88..71ff9ec7ff 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -2932,7 +2932,7 @@ void SceneTreeDock::_files_dropped(Vector<String> p_files, NodePath p_to, int p_
_normalize_drop(node, to_pos, p_type);
_perform_instantiate_scenes(p_files, node, to_pos);
} else {
- String res_path = p_files[0];
+ const String &res_path = p_files[0];
StringName res_type = EditorFileSystem::get_singleton()->get_file_type(res_path);
List<String> valid_properties;