You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Style: Set clang-format Standard to Cpp11
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
This commit is contained in:
@@ -2121,7 +2121,7 @@ void EditorPropertyResource::_menu_option(int p_which) {
|
||||
|
||||
List<PropertyInfo> property_list;
|
||||
res_orig->get_property_list(&property_list);
|
||||
List<Pair<String, Variant> > propvalues;
|
||||
List<Pair<String, Variant>> propvalues;
|
||||
|
||||
for (List<PropertyInfo>::Element *E = property_list.front(); E; E = E->next()) {
|
||||
|
||||
@@ -2144,7 +2144,7 @@ void EditorPropertyResource::_menu_option(int p_which) {
|
||||
|
||||
ERR_FAIL_COND(res.is_null());
|
||||
|
||||
for (List<Pair<String, Variant> >::Element *E = propvalues.front(); E; E = E->next()) {
|
||||
for (List<Pair<String, Variant>>::Element *E = propvalues.front(); E; E = E->next()) {
|
||||
|
||||
Pair<String, Variant> &p = E->get();
|
||||
res->set(p.first, p.second);
|
||||
@@ -2206,7 +2206,7 @@ void EditorPropertyResource::_menu_option(int p_which) {
|
||||
|
||||
int to_type = p_which - CONVERT_BASE_ID;
|
||||
|
||||
Vector<Ref<EditorResourceConversionPlugin> > conversions = EditorNode::get_singleton()->find_resource_conversion_plugin(res);
|
||||
Vector<Ref<EditorResourceConversionPlugin>> conversions = EditorNode::get_singleton()->find_resource_conversion_plugin(res);
|
||||
|
||||
ERR_FAIL_INDEX(to_type, conversions.size());
|
||||
|
||||
@@ -2438,7 +2438,7 @@ void EditorPropertyResource::_update_menu_items() {
|
||||
|
||||
if (!res.is_null()) {
|
||||
|
||||
Vector<Ref<EditorResourceConversionPlugin> > conversions = EditorNode::get_singleton()->find_resource_conversion_plugin(res);
|
||||
Vector<Ref<EditorResourceConversionPlugin>> conversions = EditorNode::get_singleton()->find_resource_conversion_plugin(res);
|
||||
if (conversions.size()) {
|
||||
menu->add_separator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user