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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/editor_property_name_processor.cpp b/editor/editor_property_name_processor.cpp
index 1e222c02a3..489aad2802 100644
--- a/editor/editor_property_name_processor.cpp
+++ b/editor/editor_property_name_processor.cpp
@@ -57,16 +57,16 @@ bool EditorPropertyNameProcessor::is_localization_available() {
}
String EditorPropertyNameProcessor::_capitalize_name(const String &p_name) const {
- const Map<String, String>::Element *cached = capitalize_string_cache.find(p_name);
+ HashMap<String, String>::ConstIterator cached = capitalize_string_cache.find(p_name);
if (cached) {
- return cached->value();
+ return cached->value;
}
Vector<String> parts = p_name.split("_", false);
for (int i = 0; i < parts.size(); i++) {
- const Map<String, String>::Element *remap = capitalize_string_remaps.find(parts[i]);
+ HashMap<String, String>::ConstIterator remap = capitalize_string_remaps.find(parts[i]);
if (remap) {
- parts.write[i] = remap->get();
+ parts.write[i] = remap->value;
} else {
parts.write[i] = parts[i].capitalize();
}