You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Replace find with contains/has where applicable
* Replaces `find(...) != -1` with `contains` for `String` * Replaces `find(...) == -1` with `!contains` for `String` * Replaces `find(...) != -1` with `has` for containers * Replaces `find(...) == -1` with `!has` for containers
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user