You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4.
This commit is contained in:
@@ -653,23 +653,23 @@ void GDScriptSyntaxHighlighter::_update_cache() {
|
||||
add_color_region(beg, end, string_color, end.is_empty());
|
||||
}
|
||||
|
||||
const Ref<Script> script = _get_edited_resource();
|
||||
if (script.is_valid()) {
|
||||
const Ref<Script> scr = _get_edited_resource();
|
||||
if (scr.is_valid()) {
|
||||
/* Member types. */
|
||||
const Color member_variable_color = EDITOR_GET("text_editor/theme/highlighting/member_variable_color");
|
||||
StringName instance_base = script->get_instance_base_type();
|
||||
StringName instance_base = scr->get_instance_base_type();
|
||||
if (instance_base != StringName()) {
|
||||
List<PropertyInfo> plist;
|
||||
ClassDB::get_property_list(instance_base, &plist);
|
||||
for (const PropertyInfo &E : plist) {
|
||||
String name = E.name;
|
||||
String prop_name = E.name;
|
||||
if (E.usage & PROPERTY_USAGE_CATEGORY || E.usage & PROPERTY_USAGE_GROUP || E.usage & PROPERTY_USAGE_SUBGROUP) {
|
||||
continue;
|
||||
}
|
||||
if (name.contains("/")) {
|
||||
if (prop_name.contains("/")) {
|
||||
continue;
|
||||
}
|
||||
member_keywords[name] = member_variable_color;
|
||||
member_keywords[prop_name] = member_variable_color;
|
||||
}
|
||||
|
||||
List<String> clist;
|
||||
|
||||
Reference in New Issue
Block a user