diff options
Diffstat (limited to 'editor/editor_property_name_processor.cpp')
-rw-r--r-- | editor/editor_property_name_processor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_property_name_processor.cpp b/editor/editor_property_name_processor.cpp index 1318b84d60..f23cab676c 100644 --- a/editor/editor_property_name_processor.cpp +++ b/editor/editor_property_name_processor.cpp @@ -63,7 +63,7 @@ bool EditorPropertyNameProcessor::is_localization_available() { return false; } const Vector<String> forbidden = String("en").split(","); - return forbidden.find(EDITOR_GET("interface/editor/editor_language")) == -1; + return !forbidden.has(EDITOR_GET("interface/editor/editor_language")); } String EditorPropertyNameProcessor::_capitalize_name(const String &p_name) const { @@ -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]); |