summaryrefslogtreecommitdiffstats
path: root/editor/editor_property_name_processor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_property_name_processor.cpp')
-rw-r--r--editor/editor_property_name_processor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_property_name_processor.cpp b/editor/editor_property_name_processor.cpp
index 1318b84d60..a00b50c191 100644
--- a/editor/editor_property_name_processor.cpp
+++ b/editor/editor_property_name_processor.cpp
@@ -75,7 +75,7 @@ String EditorPropertyNameProcessor::_capitalize_name(const String &p_name) const
Vector<String> parts = p_name.split("_", false);
for (int i = 0; i < parts.size(); i++) {
// Articles/conjunctions/prepositions which should only be capitalized when not at beginning and end.
- if (i > 0 && i + 1 < parts.size() && stop_words.find(parts[i]) != -1) {
+ if (i > 0 && i + 1 < parts.size() && stop_words.has(parts[i])) {
continue;
}
HashMap<String, String>::ConstIterator remap = capitalize_string_remaps.find(parts[i]);