summaryrefslogtreecommitdiffstats
path: root/editor/editor_property_name_processor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-08 14:35:44 +0200
commita9a1d0a162ef6be57374519589c538205e65a7fc (patch)
tree1789441c8af84b396ca21892c332c0583abb9c48 /editor/editor_property_name_processor.cpp
parent1d101329c96460a8b00a8dec5ff8808a589ee505 (diff)
parenta0dbdcc3abbd3e6307c6e68d0e60f8c0fa31d576 (diff)
downloadredot-engine-a9a1d0a162ef6be57374519589c538205e65a7fc.tar.gz
Merge pull request #91619 from AThousandShips/find_improve
Replace `find` with `contains/has` where applicable
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 a00b50c191..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 {