summaryrefslogtreecommitdiffstats
path: root/editor/plugins/theme_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-07-26 17:50:35 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-07-26 19:27:11 +0200
commit92299989bd10fd9855b6d77bc2bfabae218d1eea (patch)
tree7102f96ac3722e82c2cae7ad8bd4a5b5e7961989 /editor/plugins/theme_editor_plugin.cpp
parentfef27e9b5b9b125ff535513c80b45953e8717f7d (diff)
downloadredot-engine-92299989bd10fd9855b6d77bc2bfabae218d1eea.tar.gz
Use Ref<T> references as iterators where relevant
And const when possible.
Diffstat (limited to 'editor/plugins/theme_editor_plugin.cpp')
-rw-r--r--editor/plugins/theme_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/theme_editor_plugin.cpp b/editor/plugins/theme_editor_plugin.cpp
index 6bd901cead..6bcc65e30c 100644
--- a/editor/plugins/theme_editor_plugin.cpp
+++ b/editor/plugins/theme_editor_plugin.cpp
@@ -2906,7 +2906,7 @@ void ThemeTypeEditor::_update_stylebox_from_leading() {
continue;
}
- for (Ref<StyleBox> F : styleboxes) {
+ for (const Ref<StyleBox> &F : styleboxes) {
Ref<StyleBox> sb = F;
sb->set(E.name, value);
}