diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-01 21:29:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 21:29:33 +0100 |
commit | b5707400ebb3daa346fece54c119a5da70852647 (patch) | |
tree | 05a82f8a1434e4fa380d9e78cd34c3bcb33ecb1e /editor/plugins/script_editor_plugin.cpp | |
parent | dc4483a3a74a4cac83fc0387ea4d09066a0a0e1c (diff) | |
parent | fc27636999a15f88b1f3b1d7101d84a67968ba06 (diff) |
Merge pull request #57525 from AnilBK/vector-use-clear-has
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 2a8882bbd1..9e46150813 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -3486,7 +3486,7 @@ void ScriptEditor::_open_script_request(const String &p_path) { void ScriptEditor::register_syntax_highlighter(const Ref<EditorSyntaxHighlighter> &p_syntax_highlighter) { ERR_FAIL_COND(p_syntax_highlighter.is_null()); - if (syntax_highlighters.find(p_syntax_highlighter) == -1) { + if (!syntax_highlighters.has(p_syntax_highlighter)) { syntax_highlighters.push_back(p_syntax_highlighter); } } |