summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-08-13 21:24:02 +0200
committerRémi Verschelde <rverschelde@gmail.com>2021-08-13 21:27:57 +0200
commit81512a3732dd2cad3989fa94c0ec9261c6930030 (patch)
tree6929ef6556b209b55eba363b069fb07b9cbd47da /scene/gui
parent4c3ece8c4bdb6d4927e69dce1c9b716ebc93d4ee (diff)
Style: Cleanup code using `text_editor/completion/use_single_quotes`
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/control.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index a2e6872da6..5e5e1e7833 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -2585,7 +2585,7 @@ bool Control::is_visibility_clip_disabled() const {
void Control::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const {
#ifdef TOOLS_ENABLED
- const String quote_style = EDITOR_DEF("text_editor/completion/use_single_quotes", 0) ? "'" : "\"";
+ const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\"";
#else
const String quote_style = "\"";
#endif
@@ -2608,8 +2608,8 @@ void Control::get_argument_options(const StringName &p_function, int p_idx, List
}
sn.sort_custom<StringName::AlphCompare>();
- for (const StringName &E : sn) {
- r_options->push_back(quote_style + E + quote_style);
+ for (const StringName &name : sn) {
+ r_options->push_back(String(name).quote(quote_style));
}
}
}