From cb282c6ef0bb91957f8a6f422705813bd47c788c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 17 Mar 2020 07:33:00 +0100 Subject: [PATCH] Style: Set clang-format Standard to Cpp11 For us, it practically only changes the fact that `A>` is now used instead of the C++03 compatible `A >`. 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`. --- .clang-format | 4 +- core/bind/core_bind.cpp | 26 +++++------ core/class_db.cpp | 2 +- core/class_db.h | 4 +- core/compressed_translation.cpp | 6 +-- core/debugger/local_debugger.cpp | 4 +- core/debugger/script_debugger.h | 4 +- core/input_map.cpp | 14 +++--- core/input_map.h | 6 +-- core/io/config_file.cpp | 4 +- core/io/config_file.h | 2 +- core/io/file_access_memory.cpp | 6 +-- core/io/http_client.cpp | 2 +- core/io/resource_importer.cpp | 4 +- core/io/resource_importer.h | 6 +-- core/io/resource_loader.cpp | 4 +- core/io/resource_loader.h | 2 +- core/io/resource_saver.cpp | 2 +- core/list.h | 4 +- core/math/geometry.cpp | 18 ++++---- core/math/geometry.h | 26 +++++------ core/method_ptrcall.h | 10 ++-- core/oa_hash_map.h | 2 +- core/ordered_hash_map.h | 2 +- core/os/mutex.cpp | 4 +- core/os/mutex.h | 4 +- core/os/threaded_array_processor.h | 2 +- core/project_settings.cpp | 12 ++--- core/project_settings.h | 4 +- core/reference.h | 4 +- core/resource.cpp | 8 ++-- core/resource.h | 8 ++-- core/script_language.cpp | 2 +- core/script_language.h | 4 +- core/translation.cpp | 6 +-- core/translation.h | 2 +- core/type_info.h | 2 +- core/variant.cpp | 36 +++++++-------- core/vector.h | 2 +- doc/classes/TreeItem.xml | 3 +- drivers/dummy/rasterizer_dummy.h | 6 +-- drivers/gles2/rasterizer_storage_gles2.cpp | 8 ++-- drivers/gles2/rasterizer_storage_gles2.h | 10 ++-- drivers/gles2/shader_compiler_gles2.h | 2 +- drivers/gles2/shader_gles2.h | 2 +- drivers/vulkan/rendering_device_vulkan.cpp | 16 +++---- drivers/vulkan/rendering_device_vulkan.h | 8 ++-- editor/animation_bezier_editor.cpp | 4 +- editor/animation_track_editor.cpp | 16 +++---- editor/animation_track_editor.h | 2 +- editor/collada/collada.cpp | 10 ++-- editor/collada/collada.h | 4 +- editor/connections_dialog.cpp | 2 +- editor/connections_dialog.h | 2 +- editor/debugger/editor_debugger_tree.cpp | 2 +- editor/debugger/editor_profiler.cpp | 4 +- editor/debugger/editor_profiler.h | 2 +- editor/debugger/editor_visual_profiler.cpp | 4 +- editor/debugger/editor_visual_profiler.h | 2 +- editor/debugger/script_editor_debugger.cpp | 6 +-- editor/debugger/script_editor_debugger.h | 2 +- editor/dependency_editor.cpp | 6 +-- editor/dependency_editor.h | 2 +- editor/doc/doc_data.cpp | 4 +- editor/editor_asset_installer.cpp | 2 +- editor/editor_data.cpp | 2 +- editor/editor_data.h | 4 +- editor/editor_export.cpp | 8 ++-- editor/editor_export.h | 8 ++-- editor/editor_feature_profile.cpp | 2 +- editor/editor_feature_profile.h | 2 +- editor/editor_file_system.cpp | 10 ++-- editor/editor_file_system.h | 2 +- editor/editor_help.cpp | 10 ++-- editor/editor_help.h | 6 +-- editor/editor_inspector.cpp | 20 ++++---- editor/editor_inspector.h | 4 +- editor/editor_node.cpp | 30 ++++++------ editor/editor_node.h | 8 ++-- editor/editor_plugin.cpp | 8 ++-- editor/editor_plugin.h | 2 +- editor/editor_properties.cpp | 8 ++-- editor/editor_resource_preview.h | 2 +- editor/editor_settings.cpp | 8 ++-- editor/editor_settings.h | 2 +- editor/filesystem_dock.cpp | 4 +- editor/import/editor_import_collada.cpp | 20 ++++---- editor/import/editor_scene_importer_gltf.cpp | 2 +- editor/import/editor_scene_importer_gltf.h | 8 ++-- .../resource_importer_csv_translation.cpp | 2 +- editor/import/resource_importer_obj.cpp | 14 +++--- editor/import/resource_importer_scene.cpp | 40 ++++++++-------- editor/import/resource_importer_scene.h | 8 ++-- .../resource_importer_texture_atlas.cpp | 8 ++-- .../import/resource_importer_texture_atlas.h | 4 +- editor/import_dock.cpp | 20 ++++---- .../animation_blend_tree_editor_plugin.cpp | 2 +- editor/plugins/canvas_item_editor_plugin.cpp | 4 +- .../plugins/mesh_instance_editor_plugin.cpp | 2 +- editor/plugins/mesh_library_editor_plugin.cpp | 4 +- editor/plugins/script_editor_plugin.cpp | 12 ++--- editor/plugins/script_editor_plugin.h | 4 +- editor/plugins/script_text_editor.cpp | 6 +-- editor/plugins/spatial_editor_plugin.cpp | 14 +++--- editor/plugins/spatial_editor_plugin.h | 6 +-- editor/plugins/sprite_editor_plugin.cpp | 2 +- editor/plugins/sprite_editor_plugin.h | 4 +- .../plugins/sprite_frames_editor_plugin.cpp | 4 +- editor/plugins/texture_region_editor_plugin.h | 2 +- editor/plugins/theme_editor_plugin.cpp | 20 ++++---- editor/plugins/tile_set_editor_plugin.cpp | 16 +++---- editor/plugins/tile_set_editor_plugin.h | 2 +- editor/plugins/visual_shader_editor_plugin.h | 2 +- editor/property_editor.cpp | 12 ++--- editor/quick_open.cpp | 12 ++--- editor/quick_open.h | 4 +- editor/rename_dialog.h | 2 +- editor/scene_tree_dock.cpp | 20 ++++---- editor/scene_tree_dock.h | 6 +-- editor/scene_tree_editor.cpp | 2 +- editor/script_create_dialog.cpp | 2 +- editor/script_create_dialog.h | 2 +- main/input_default.h | 2 +- main/tests/test_ordered_hash_map.cpp | 4 +- main/tests/test_physics.cpp | 2 +- .../assimp/editor_scene_importer_assimp.cpp | 2 +- modules/assimp/import_state.h | 6 +-- modules/assimp/import_utils.h | 2 +- modules/bullet/soft_body_bullet.h | 2 +- modules/csg/csg.cpp | 2 +- modules/csg/csg.h | 4 +- modules/csg/csg_shape.cpp | 14 +++--- modules/csg/csg_shape.h | 2 +- modules/gdnative/gdnative.cpp | 6 +-- modules/gdnative/gdnative.h | 2 +- .../gdnative/nativescript/api_generator.cpp | 6 +-- .../gdnative/nativescript/nativescript.cpp | 28 +++++------ modules/gdnative/nativescript/nativescript.h | 14 +++--- .../pluginscript/pluginscript_language.cpp | 2 +- .../pluginscript/pluginscript_language.h | 2 +- modules/gdnative/register_types.cpp | 2 +- modules/gdscript/gdscript.cpp | 46 +++++++++---------- modules/gdscript/gdscript.h | 10 ++-- modules/gdscript/gdscript_compiler.cpp | 2 +- modules/gdscript/gdscript_compiler.h | 4 +- modules/gdscript/gdscript_editor.cpp | 12 ++--- modules/gdscript/gdscript_function.cpp | 2 +- modules/gdscript/gdscript_function.h | 2 +- modules/gdscript/gdscript_parser.cpp | 2 +- modules/gdscript/gdscript_tokenizer.h | 10 ++-- .../gdscript_language_protocol.h | 2 +- modules/gridmap/grid_map.cpp | 18 ++++---- modules/mbedtls/crypto_mbedtls.cpp | 2 +- modules/mono/csharp_script.cpp | 26 +++++------ modules/mono/csharp_script.h | 8 ++-- modules/mono/editor/bindings_generator.cpp | 2 +- modules/mono/editor/bindings_generator.h | 2 +- modules/mono/mono_gd/gd_mono.h | 2 +- modules/upnp/upnp.h | 2 +- modules/vhacd/register_types.cpp | 4 +- modules/visual_script/visual_script.cpp | 8 ++-- modules/visual_script/visual_script.h | 4 +- .../visual_script/visual_script_editor.cpp | 36 +++++++-------- modules/visual_script/visual_script_editor.h | 6 +-- modules/visual_script/visual_script_nodes.cpp | 2 +- modules/webrtc/webrtc_multiplayer.cpp | 26 +++++------ modules/webrtc/webrtc_multiplayer.h | 4 +- modules/websocket/emws_client.cpp | 2 +- .../websocket/websocket_multiplayer_peer.cpp | 8 ++-- .../websocket/websocket_multiplayer_peer.h | 2 +- modules/websocket/wsl_client.cpp | 2 +- modules/websocket/wsl_server.cpp | 12 ++--- modules/websocket/wsl_server.h | 2 +- platform/android/api/java_class_wrapper.h | 4 +- platform/android/java_class_wrapper.cpp | 2 +- platform/android/os_android.cpp | 2 +- platform/iphone/app_delegate.h | 8 ++-- platform/iphone/app_delegate.mm | 1 - platform/iphone/export/export.cpp | 10 ++-- platform/javascript/os_javascript.cpp | 4 +- platform/javascript/os_javascript.h | 2 +- platform/osx/os_osx.h | 4 +- platform/osx/os_osx.mm | 4 +- platform/windows/os_windows.cpp | 2 +- platform/windows/os_windows.h | 2 +- platform/x11/os_x11.cpp | 2 +- platform/x11/os_x11.h | 2 +- scene/2d/animated_sprite.h | 2 +- scene/2d/collision_polygon_2d.cpp | 8 ++-- scene/2d/collision_polygon_2d.h | 2 +- scene/2d/navigation_polygon.h | 2 +- scene/2d/physics_body_2d.h | 2 +- scene/3d/collision_polygon.cpp | 2 +- scene/3d/gi_probe.h | 2 +- scene/3d/immediate_geometry.h | 2 +- scene/3d/mesh_instance.h | 2 +- scene/3d/particles.h | 2 +- scene/3d/physics_body.h | 2 +- scene/3d/ray_cast.cpp | 4 +- scene/3d/soft_body.cpp | 2 +- scene/3d/voxelizer.cpp | 2 +- scene/3d/voxelizer.h | 2 +- scene/animation/animation_tree.h | 4 +- scene/debugger/scene_debugger.cpp | 32 ++++++------- scene/debugger/scene_debugger.h | 4 +- scene/gui/control.h | 8 ++-- scene/gui/rich_text_label.h | 2 +- scene/gui/text_edit.h | 2 +- scene/main/scene_tree.cpp | 10 ++-- scene/main/scene_tree.h | 4 +- scene/main/viewport.cpp | 2 +- scene/main/viewport.h | 2 +- scene/resources/animation.cpp | 2 +- scene/resources/animation.h | 12 ++--- scene/resources/bit_map.cpp | 6 +-- scene/resources/bit_map.h | 2 +- scene/resources/curve.cpp | 4 +- .../resources/default_theme/default_theme.cpp | 2 +- scene/resources/dynamic_font.cpp | 12 ++--- scene/resources/dynamic_font.h | 14 +++--- scene/resources/font.h | 2 +- scene/resources/mesh.cpp | 20 ++++---- scene/resources/mesh.h | 6 +-- scene/resources/packed_scene.cpp | 10 ++-- scene/resources/shader.cpp | 2 +- scene/resources/shader.h | 2 +- scene/resources/texture.cpp | 10 ++-- scene/resources/texture.h | 2 +- scene/resources/theme.h | 12 ++--- scene/resources/tile_set.cpp | 14 +++--- scene/resources/tile_set.h | 8 ++-- servers/arvr_server.h | 2 +- .../effects/audio_effect_spectrum_analyzer.h | 2 +- servers/audio_server.h | 4 +- servers/camera_server.h | 2 +- servers/visual/rasterizer.h | 6 +-- .../rasterizer_rd/rasterizer_storage_rd.cpp | 22 ++++----- .../rasterizer_rd/rasterizer_storage_rd.h | 4 +- .../visual/rasterizer_rd/shader_compiler_rd.h | 2 +- servers/visual/rendering_device.h | 2 +- servers/visual/shader_language.cpp | 4 +- servers/visual/shader_language.h | 2 +- servers/visual/visual_server_raster.h | 4 +- servers/visual/visual_server_viewport.cpp | 4 +- servers/visual/visual_server_wrap_mt.h | 4 +- servers/visual_server.cpp | 4 +- servers/visual_server.h | 6 +-- 247 files changed, 794 insertions(+), 794 deletions(-) diff --git a/.clang-format b/.clang-format index 237fd9ce309..eba6d586f00 100644 --- a/.clang-format +++ b/.clang-format @@ -112,11 +112,11 @@ UseTab: Always --- ### C++ specific config ### Language: Cpp -Standard: Cpp03 +Standard: Cpp11 --- ### ObjC specific config ### Language: ObjC -Standard: Cpp03 +Standard: Cpp11 ObjCBlockIndentWidth: 4 # ObjCSpaceAfterProperty: false # ObjCSpaceBeforeProtocolList: true diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index bfe07d61c5d..e7a1f8b2eea 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -964,10 +964,10 @@ void _OS::print_all_textures_by_size() { List<_OSCoreBindImg> imgs; int total = 0; { - List > rsrc; + List> rsrc; ResourceCache::get_cached_resources(&rsrc); - for (List >::Element *E = rsrc.front(); E; E = E->next()) { + for (List>::Element *E = rsrc.front(); E; E = E->next()) { if (!E->get()->is_class("ImageTexture")) continue; @@ -998,13 +998,13 @@ void _OS::print_resources_by_type(const Vector &p_types) { Map type_count; - List > resources; + List> resources; ResourceCache::get_cached_resources(&resources); - List > rsrc; + List> rsrc; ResourceCache::get_cached_resources(&rsrc); - for (List >::Element *E = rsrc.front(); E; E = E->next()) { + for (List>::Element *E = rsrc.front(); E; E = E->next()) { Ref r = E->get(); @@ -1633,7 +1633,7 @@ Vector _Geometry::clip_polygon(const Vector &p_points, const P Array _Geometry::merge_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { - Vector > polys = Geometry::merge_polygons_2d(p_polygon_a, p_polygon_b); + Vector> polys = Geometry::merge_polygons_2d(p_polygon_a, p_polygon_b); Array ret; @@ -1645,7 +1645,7 @@ Array _Geometry::merge_polygons_2d(const Vector &p_polygon_a, const Vec Array _Geometry::clip_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { - Vector > polys = Geometry::clip_polygons_2d(p_polygon_a, p_polygon_b); + Vector> polys = Geometry::clip_polygons_2d(p_polygon_a, p_polygon_b); Array ret; @@ -1657,7 +1657,7 @@ Array _Geometry::clip_polygons_2d(const Vector &p_polygon_a, const Vect Array _Geometry::intersect_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { - Vector > polys = Geometry::intersect_polygons_2d(p_polygon_a, p_polygon_b); + Vector> polys = Geometry::intersect_polygons_2d(p_polygon_a, p_polygon_b); Array ret; @@ -1669,7 +1669,7 @@ Array _Geometry::intersect_polygons_2d(const Vector &p_polygon_a, const Array _Geometry::exclude_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { - Vector > polys = Geometry::exclude_polygons_2d(p_polygon_a, p_polygon_b); + Vector> polys = Geometry::exclude_polygons_2d(p_polygon_a, p_polygon_b); Array ret; @@ -1681,7 +1681,7 @@ Array _Geometry::exclude_polygons_2d(const Vector &p_polygon_a, const V Array _Geometry::clip_polyline_with_polygon_2d(const Vector &p_polyline, const Vector &p_polygon) { - Vector > polys = Geometry::clip_polyline_with_polygon_2d(p_polyline, p_polygon); + Vector> polys = Geometry::clip_polyline_with_polygon_2d(p_polyline, p_polygon); Array ret; @@ -1693,7 +1693,7 @@ Array _Geometry::clip_polyline_with_polygon_2d(const Vector &p_polyline Array _Geometry::intersect_polyline_with_polygon_2d(const Vector &p_polyline, const Vector &p_polygon) { - Vector > polys = Geometry::intersect_polyline_with_polygon_2d(p_polyline, p_polygon); + Vector> polys = Geometry::intersect_polyline_with_polygon_2d(p_polyline, p_polygon); Array ret; @@ -1705,7 +1705,7 @@ Array _Geometry::intersect_polyline_with_polygon_2d(const Vector &p_pol Array _Geometry::offset_polygon_2d(const Vector &p_polygon, real_t p_delta, PolyJoinType p_join_type) { - Vector > polys = Geometry::offset_polygon_2d(p_polygon, p_delta, Geometry::PolyJoinType(p_join_type)); + Vector> polys = Geometry::offset_polygon_2d(p_polygon, p_delta, Geometry::PolyJoinType(p_join_type)); Array ret; @@ -1717,7 +1717,7 @@ Array _Geometry::offset_polygon_2d(const Vector &p_polygon, real_t p_de Array _Geometry::offset_polyline_2d(const Vector &p_polygon, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type) { - Vector > polys = Geometry::offset_polyline_2d(p_polygon, p_delta, Geometry::PolyJoinType(p_join_type), Geometry::PolyEndType(p_end_type)); + Vector> polys = Geometry::offset_polyline_2d(p_polygon, p_delta, Geometry::PolyJoinType(p_join_type), Geometry::PolyEndType(p_end_type)); Array ret; diff --git a/core/class_db.cpp b/core/class_db.cpp index 35e216a58f0..50c924bdd21 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -1401,7 +1401,7 @@ void ClassDB::get_extensions_for_type(const StringName &p_class, List *p } } -HashMap > ClassDB::default_values; +HashMap> ClassDB::default_values; Set ClassDB::default_values_cached; Variant ClassDB::class_get_default_property_value(const StringName &p_class, const StringName &p_property, bool *r_valid) { diff --git a/core/class_db.h b/core/class_db.h index 398eca91327..35bbe6b6f50 100644 --- a/core/class_db.h +++ b/core/class_db.h @@ -119,7 +119,7 @@ public: void *class_ptr; HashMap method_map; HashMap constant_map; - HashMap > enum_map; + HashMap> enum_map; HashMap signal_map; List property_list; #ifdef DEBUG_METHODS_ENABLED @@ -160,7 +160,7 @@ public: static void _add_class2(const StringName &p_class, const StringName &p_inherits); - static HashMap > default_values; + static HashMap> default_values; static Set default_values_cached; public: diff --git a/core/compressed_translation.cpp b/core/compressed_translation.cpp index ed307fd3acf..0225524bc8d 100644 --- a/core/compressed_translation.cpp +++ b/core/compressed_translation.cpp @@ -50,8 +50,8 @@ void PHashTranslation::generate(const Ref &p_from) { int size = Math::larger_prime(keys.size()); - Vector > > buckets; - Vector > table; + Vector>> buckets; + Vector> table; Vector hfunc_table; Vector<_PHashTranslationCmp> compressed; @@ -109,7 +109,7 @@ void PHashTranslation::generate(const Ref &p_from) { for (int i = 0; i < size; i++) { - const Vector > &b = buckets[i]; + const Vector> &b = buckets[i]; Map &t = table.write[i]; if (b.size() == 0) diff --git a/core/debugger/local_debugger.cpp b/core/debugger/local_debugger.cpp index 913d3fc0319..01e30fb6212 100644 --- a/core/debugger/local_debugger.cpp +++ b/core/debugger/local_debugger.cpp @@ -262,14 +262,14 @@ void LocalDebugger::debug(bool p_can_continue, bool p_is_error_breakpoint) { if (line.get_slice_count(" ") <= 1) { - const Map > &breakpoints = script_debugger->get_breakpoints(); + const Map> &breakpoints = script_debugger->get_breakpoints(); if (breakpoints.size() == 0) { print_line("No Breakpoints."); continue; } print_line("Breakpoint(s): " + itos(breakpoints.size())); - for (Map >::Element *E = breakpoints.front(); E; E = E->next()) { + for (Map>::Element *E = breakpoints.front(); E; E = E->next()) { print_line("\t" + String(E->value().front()->get()) + ":" + itos(E->key())); } diff --git a/core/debugger/script_debugger.h b/core/debugger/script_debugger.h index d8ddf353bfc..2273073bf4f 100644 --- a/core/debugger/script_debugger.h +++ b/core/debugger/script_debugger.h @@ -45,7 +45,7 @@ class ScriptDebugger { int depth = -1; bool skip_breakpoints = false; - Map > breakpoints; + Map> breakpoints; ScriptLanguage *break_lang = NULL; Vector error_stack_info; @@ -67,7 +67,7 @@ public: bool is_breakpoint(int p_line, const StringName &p_source) const; bool is_breakpoint_line(int p_line) const; void clear_breakpoints(); - const Map > &get_breakpoints() const { return breakpoints; } + const Map> &get_breakpoints() const { return breakpoints; } void debug(ScriptLanguage *p_lang, bool p_can_continue = true, bool p_is_error_breakpoint = false); ScriptLanguage *get_break_language() const; diff --git a/core/input_map.cpp b/core/input_map.cpp index b855e14e0dc..8f18c082d6c 100644 --- a/core/input_map.cpp +++ b/core/input_map.cpp @@ -99,9 +99,9 @@ List InputMap::get_actions() const { return actions; } -List >::Element *InputMap::_find_event(Action &p_action, const Ref &p_event, bool *p_pressed, float *p_strength) const { +List>::Element *InputMap::_find_event(Action &p_action, const Ref &p_event, bool *p_pressed, float *p_strength) const { - for (List >::Element *E = p_action.inputs.front(); E; E = E->next()) { + for (List>::Element *E = p_action.inputs.front(); E; E = E->next()) { const Ref e = E->get(); @@ -151,7 +151,7 @@ void InputMap::action_erase_event(const StringName &p_action, const Ref >::Element *E = _find_event(input_map[p_action], p_event); + List>::Element *E = _find_event(input_map[p_action], p_event); if (E) input_map[p_action].inputs.erase(E); } @@ -166,9 +166,9 @@ void InputMap::action_erase_events(const StringName &p_action) { Array InputMap::_get_action_list(const StringName &p_action) { Array ret; - const List > *al = get_action_list(p_action); + const List> *al = get_action_list(p_action); if (al) { - for (const List >::Element *E = al->front(); E; E = E->next()) { + for (const List>::Element *E = al->front(); E; E = E->next()) { ret.push_back(E->get()); } @@ -177,7 +177,7 @@ Array InputMap::_get_action_list(const StringName &p_action) { return ret; } -const List > *InputMap::get_action_list(const StringName &p_action) { +const List> *InputMap::get_action_list(const StringName &p_action) { const Map::Element *E = input_map.find(p_action); if (!E) @@ -205,7 +205,7 @@ bool InputMap::event_get_action_status(const Ref &p_event, const Str bool pressed; float strength; - List >::Element *event = _find_event(E->get(), p_event, &pressed, &strength); + List>::Element *event = _find_event(E->get(), p_event, &pressed, &strength); if (event != NULL) { if (p_pressed != NULL) *p_pressed = pressed; diff --git a/core/input_map.h b/core/input_map.h index 19d550af77a..6039d915c96 100644 --- a/core/input_map.h +++ b/core/input_map.h @@ -47,7 +47,7 @@ public: struct Action { int id; float deadzone; - List > inputs; + List> inputs; }; private: @@ -55,7 +55,7 @@ private: mutable Map input_map; - List >::Element *_find_event(Action &p_action, const Ref &p_event, bool *p_pressed = NULL, float *p_strength = NULL) const; + List>::Element *_find_event(Action &p_action, const Ref &p_event, bool *p_pressed = NULL, float *p_strength = NULL) const; Array _get_action_list(const StringName &p_action); Array _get_actions(); @@ -77,7 +77,7 @@ public: void action_erase_event(const StringName &p_action, const Ref &p_event); void action_erase_events(const StringName &p_action); - const List > *get_action_list(const StringName &p_action); + const List> *get_action_list(const StringName &p_action); bool event_is_action(const Ref &p_event, const StringName &p_action) const; bool event_get_action_status(const Ref &p_event, const StringName &p_action, bool *p_pressed = NULL, float *p_strength = NULL) const; diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp index 531467ecd6b..351e2941e8b 100644 --- a/core/io/config_file.cpp +++ b/core/io/config_file.cpp @@ -107,7 +107,7 @@ bool ConfigFile::has_section_key(const String &p_section, const String &p_key) c void ConfigFile::get_sections(List *r_sections) const { - for (OrderedHashMap >::ConstElement E = values.front(); E; E = E.next()) { + for (OrderedHashMap>::ConstElement E = values.front(); E; E = E.next()) { r_sections->push_back(E.key()); } } @@ -187,7 +187,7 @@ Error ConfigFile::save_encrypted_pass(const String &p_path, const String &p_pass Error ConfigFile::_internal_save(FileAccess *file) { - for (OrderedHashMap >::Element E = values.front(); E; E = E.next()) { + for (OrderedHashMap>::Element E = values.front(); E; E = E.next()) { if (E != values.front()) file->store_string("\n"); diff --git a/core/io/config_file.h b/core/io/config_file.h index 7efcb5a04c3..39fc2ab4123 100644 --- a/core/io/config_file.h +++ b/core/io/config_file.h @@ -40,7 +40,7 @@ class ConfigFile : public Reference { GDCLASS(ConfigFile, Reference); - OrderedHashMap > values; + OrderedHashMap> values; PackedStringArray _get_sections() const; PackedStringArray _get_section_keys(const String &p_section) const; diff --git a/core/io/file_access_memory.cpp b/core/io/file_access_memory.cpp index fc318b3dd21..9e707678c0c 100644 --- a/core/io/file_access_memory.cpp +++ b/core/io/file_access_memory.cpp @@ -35,12 +35,12 @@ #include "core/os/dir_access.h" #include "core/project_settings.h" -static Map > *files = NULL; +static Map> *files = NULL; void FileAccessMemory::register_file(String p_name, Vector p_data) { if (!files) { - files = memnew((Map >)); + files = memnew((Map>)); } String name; @@ -89,7 +89,7 @@ Error FileAccessMemory::_open(const String &p_path, int p_mode_flags) { String name = fix_path(p_path); //name = DirAccess::normalize_path(name); - Map >::Element *E = files->find(name); + Map>::Element *E = files->find(name); ERR_FAIL_COND_V_MSG(!E, ERR_FILE_NOT_FOUND, "Can't find file '" + p_path + "'."); data = E->get().ptrw(); diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index ce7025de35b..56f8f1ff91e 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -350,7 +350,7 @@ Error HTTPClient::poll() { handshaking = true; } else { // We are already handshaking, which means we can use your already active SSL connection - ssl = static_cast >(connection); + ssl = static_cast>(connection); if (ssl.is_null()) { close(); status = STATUS_SSL_HANDSHAKE_ERROR; diff --git a/core/io/resource_importer.cpp b/core/io/resource_importer.cpp index efaf9589494..452514a5885 100644 --- a/core/io/resource_importer.cpp +++ b/core/io/resource_importer.cpp @@ -362,7 +362,7 @@ Ref ResourceFormatImporter::get_importer_by_name(const String return Ref(); } -void ResourceFormatImporter::get_importers_for_extension(const String &p_extension, List > *r_importers) { +void ResourceFormatImporter::get_importers_for_extension(const String &p_extension, List> *r_importers) { for (int i = 0; i < importers.size(); i++) { List local_exts; @@ -423,7 +423,7 @@ bool ResourceFormatImporter::are_import_settings_valid(const String &p_path) con String ResourceFormatImporter::get_import_settings_hash() const { - Vector > sorted_importers = importers; + Vector> sorted_importers = importers; sorted_importers.sort_custom(); diff --git a/core/io/resource_importer.h b/core/io/resource_importer.h index 65c148f2ac4..369efbe83c9 100644 --- a/core/io/resource_importer.h +++ b/core/io/resource_importer.h @@ -54,7 +54,7 @@ class ResourceFormatImporter : public ResourceFormatLoader { bool operator()(const Ref &p_a, const Ref &p_b) const; }; - Vector > importers; + Vector> importers; public: static ResourceFormatImporter *get_singleton() { return singleton; } @@ -83,7 +83,7 @@ public: void remove_importer(const Ref &p_importer) { importers.erase(p_importer); } Ref get_importer_by_name(const String &p_name) const; Ref get_importer_by_extension(const String &p_extension) const; - void get_importers_for_extension(const String &p_extension, List > *r_importers); + void get_importers_for_extension(const String &p_extension, List> *r_importers); bool are_import_settings_valid(const String &p_path) const; String get_import_settings_hash() const; @@ -125,7 +125,7 @@ public: virtual Error import(const String &p_source_file, const String &p_save_path, const Map &p_options, List *r_platform_variants, List *r_gen_files = NULL, Variant *r_metadata = NULL) = 0; - virtual Error import_group_file(const String &p_group_file, const Map > &p_source_file_options, const Map &p_base_paths) { return ERR_UNAVAILABLE; } + virtual Error import_group_file(const String &p_group_file, const Map> &p_source_file_options, const Map &p_base_paths) { return ERR_UNAVAILABLE; } virtual bool are_import_settings_valid(const String &p_path) const { return true; } virtual String get_import_settings_string() const { return String(); } }; diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 5dca8b3b896..b150df5f402 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -1113,7 +1113,7 @@ void ResourceLoader::add_custom_loaders() { void ResourceLoader::remove_custom_loaders() { - Vector > custom_loaders; + Vector> custom_loaders; for (int i = 0; i < loader_count; ++i) { if (loader[i]->get_script_instance()) { custom_loaders.push_back(loader[i]); @@ -1159,7 +1159,7 @@ int ResourceLoader::thread_suspended_count = 0; int ResourceLoader::thread_load_max = 0; SelfList::List ResourceLoader::remapped_list; -HashMap > ResourceLoader::translation_remaps; +HashMap> ResourceLoader::translation_remaps; HashMap ResourceLoader::path_remaps; ResourceLoaderImport ResourceLoader::import = NULL; diff --git a/core/io/resource_loader.h b/core/io/resource_loader.h index ea89917a5fb..5ba9e268588 100644 --- a/core/io/resource_loader.h +++ b/core/io/resource_loader.h @@ -90,7 +90,7 @@ private: static void *dep_err_notify_ud; static DependencyErrorNotify dep_err_notify; static bool abort_on_missing_resource; - static HashMap > translation_remaps; + static HashMap> translation_remaps; static HashMap path_remaps; static String _path_remap(const String &p_path, bool *r_translation_remapped = NULL); diff --git a/core/io/resource_saver.cpp b/core/io/resource_saver.cpp index 740aaf5cfae..80d2c5e4717 100644 --- a/core/io/resource_saver.cpp +++ b/core/io/resource_saver.cpp @@ -256,7 +256,7 @@ void ResourceSaver::add_custom_savers() { void ResourceSaver::remove_custom_savers() { - Vector > custom_savers; + Vector> custom_savers; for (int i = 0; i < saver_count; ++i) { if (saver[i]->get_script_instance()) { custom_savers.push_back(saver[i]); diff --git a/core/list.h b/core/list.h index 6250cec5984..5a7c9e572c1 100644 --- a/core/list.h +++ b/core/list.h @@ -576,7 +576,7 @@ public: void sort() { - sort_custom >(); + sort_custom>(); } template @@ -657,7 +657,7 @@ public: idx++; } - SortArray > sort; + SortArray> sort; sort.sort(aux_buffer, s); _data->first = aux_buffer[0]; diff --git a/core/math/geometry.cpp b/core/math/geometry.cpp index 69c7abfd303..3e07e9253e5 100644 --- a/core/math/geometry.cpp +++ b/core/math/geometry.cpp @@ -214,9 +214,9 @@ static bool _group_face(_FaceClassify *p_faces, int len, int p_index, int p_grou return true; } -Vector > Geometry::separate_objects(Vector p_array) { +Vector> Geometry::separate_objects(Vector p_array) { - Vector > objects; + Vector> objects; int len = p_array.size(); @@ -235,7 +235,7 @@ Vector > Geometry::separate_objects(Vector p_array) { bool error = _connect_faces(_fcptr, len, -1); - ERR_FAIL_COND_V_MSG(error, Vector >(), "Invalid geometry."); + ERR_FAIL_COND_V_MSG(error, Vector>(), "Invalid geometry."); // Group connected faces in separate objects. @@ -679,8 +679,8 @@ Vector Geometry::wrap_geometry(Vector p_array, real_t *p_error) { return wrapped_faces; } -Vector > Geometry::decompose_polygon_in_convex(Vector polygon) { - Vector > decomp; +Vector> Geometry::decompose_polygon_in_convex(Vector polygon) { + Vector> decomp; List in_poly, out_poly; TriangulatorPoly inp; @@ -1076,7 +1076,7 @@ void Geometry::make_atlas(const Vector &p_rects, Vector &r_resu r_size = Size2(results[best].max_w, results[best].max_h); } -Vector > Geometry::_polypaths_do_operation(PolyBooleanOperation p_op, const Vector &p_polypath_a, const Vector &p_polypath_b, bool is_a_open) { +Vector> Geometry::_polypaths_do_operation(PolyBooleanOperation p_op, const Vector &p_polypath_a, const Vector &p_polypath_b, bool is_a_open) { using namespace ClipperLib; @@ -1111,7 +1111,7 @@ Vector > Geometry::_polypaths_do_operation(PolyBooleanOperation p clp.Execute(op, paths); // Works on closed polygons only. } // Have to scale points down now. - Vector > polypaths; + Vector> polypaths; for (Paths::size_type i = 0; i < paths.size(); ++i) { Vector polypath; @@ -1128,7 +1128,7 @@ Vector > Geometry::_polypaths_do_operation(PolyBooleanOperation p return polypaths; } -Vector > Geometry::_polypath_offset(const Vector &p_polypath, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type) { +Vector> Geometry::_polypath_offset(const Vector &p_polypath, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type) { using namespace ClipperLib; @@ -1162,7 +1162,7 @@ Vector > Geometry::_polypath_offset(const Vector &p_polyp co.Execute(paths, p_delta * SCALE_FACTOR); // Inflate/deflate. // Have to scale points down now. - Vector > polypaths; + Vector> polypaths; for (Paths::size_type i = 0; i < paths.size(); ++i) { Vector polypath; diff --git a/core/math/geometry.h b/core/math/geometry.h index a94d00bf77a..6453d161811 100644 --- a/core/math/geometry.h +++ b/core/math/geometry.h @@ -790,44 +790,44 @@ public: END_ROUND }; - static Vector > merge_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { + static Vector> merge_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { return _polypaths_do_operation(OPERATION_UNION, p_polygon_a, p_polygon_b); } - static Vector > clip_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { + static Vector> clip_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { return _polypaths_do_operation(OPERATION_DIFFERENCE, p_polygon_a, p_polygon_b); } - static Vector > intersect_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { + static Vector> intersect_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { return _polypaths_do_operation(OPERATION_INTERSECTION, p_polygon_a, p_polygon_b); } - static Vector > exclude_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { + static Vector> exclude_polygons_2d(const Vector &p_polygon_a, const Vector &p_polygon_b) { return _polypaths_do_operation(OPERATION_XOR, p_polygon_a, p_polygon_b); } - static Vector > clip_polyline_with_polygon_2d(const Vector &p_polyline, const Vector &p_polygon) { + static Vector> clip_polyline_with_polygon_2d(const Vector &p_polyline, const Vector &p_polygon) { return _polypaths_do_operation(OPERATION_DIFFERENCE, p_polyline, p_polygon, true); } - static Vector > intersect_polyline_with_polygon_2d(const Vector &p_polyline, const Vector &p_polygon) { + static Vector> intersect_polyline_with_polygon_2d(const Vector &p_polyline, const Vector &p_polygon) { return _polypaths_do_operation(OPERATION_INTERSECTION, p_polyline, p_polygon, true); } - static Vector > offset_polygon_2d(const Vector &p_polygon, real_t p_delta, PolyJoinType p_join_type) { + static Vector> offset_polygon_2d(const Vector &p_polygon, real_t p_delta, PolyJoinType p_join_type) { return _polypath_offset(p_polygon, p_delta, p_join_type, END_POLYGON); } - static Vector > offset_polyline_2d(const Vector &p_polygon, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type) { + static Vector> offset_polyline_2d(const Vector &p_polygon, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type) { - ERR_FAIL_COND_V_MSG(p_end_type == END_POLYGON, Vector >(), "Attempt to offset a polyline like a polygon (use offset_polygon_2d instead)."); + ERR_FAIL_COND_V_MSG(p_end_type == END_POLYGON, Vector>(), "Attempt to offset a polyline like a polygon (use offset_polygon_2d instead)."); return _polypath_offset(p_polygon, p_delta, p_join_type, p_end_type); } @@ -899,7 +899,7 @@ public: return (intersections & 1); } - static Vector > separate_objects(Vector p_array); + static Vector> separate_objects(Vector p_array); // Create a "wrap" that encloses the given geometry. static Vector wrap_geometry(Vector p_array, real_t *p_error = NULL); @@ -1004,7 +1004,7 @@ public: H.resize(k); return H; } - static Vector > decompose_polygon_in_convex(Vector polygon); + static Vector> decompose_polygon_in_convex(Vector polygon); static MeshData build_convex_mesh(const Vector &p_planes); static Vector build_sphere_planes(real_t p_radius, int p_lats, int p_lons, Vector3::Axis p_axis = Vector3::AXIS_Z); @@ -1015,8 +1015,8 @@ public: static void make_atlas(const Vector &p_rects, Vector &r_result, Size2i &r_size); private: - static Vector > _polypaths_do_operation(PolyBooleanOperation p_op, const Vector &p_polypath_a, const Vector &p_polypath_b, bool is_a_open = false); - static Vector > _polypath_offset(const Vector &p_polypath, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type); + static Vector> _polypaths_do_operation(PolyBooleanOperation p_op, const Vector &p_polypath_a, const Vector &p_polypath_b, bool is_a_open = false); + static Vector> _polypath_offset(const Vector &p_polypath, real_t p_delta, PolyJoinType p_join_type, PolyEndType p_end_type); }; #endif diff --git a/core/method_ptrcall.h b/core/method_ptrcall.h index 3db186ca69c..d09242e2f17 100644 --- a/core/method_ptrcall.h +++ b/core/method_ptrcall.h @@ -192,7 +192,7 @@ struct PtrToArg { #define MAKE_VECARG(m_type) \ template <> \ - struct PtrToArg > { \ + struct PtrToArg> { \ _FORCE_INLINE_ static Vector convert(const void *p_ptr) { \ const Vector *dvs = reinterpret_cast *>(p_ptr); \ Vector ret; \ @@ -237,7 +237,7 @@ struct PtrToArg { #define MAKE_VECARG_ALT(m_type, m_type_alt) \ template <> \ - struct PtrToArg > { \ + struct PtrToArg> { \ _FORCE_INLINE_ static Vector convert(const void *p_ptr) { \ const Vector *dvs = reinterpret_cast *>(p_ptr); \ Vector ret; \ @@ -293,7 +293,7 @@ MAKE_VECARG_ALT(String, StringName); //for stuff that gets converted to Array vectors #define MAKE_VECARR(m_type) \ template <> \ - struct PtrToArg > { \ + struct PtrToArg> { \ _FORCE_INLINE_ static Vector convert(const void *p_ptr) { \ const Array *arr = reinterpret_cast(p_ptr); \ Vector ret; \ @@ -333,7 +333,7 @@ MAKE_VECARR(Plane); #define MAKE_DVECARR(m_type) \ template <> \ - struct PtrToArg > { \ + struct PtrToArg> { \ _FORCE_INLINE_ static Vector convert(const void *p_ptr) { \ const Array *arr = reinterpret_cast(p_ptr); \ Vector ret; \ @@ -402,7 +402,7 @@ MAKE_VECARR(Plane); MAKE_STRINGCONV_BY_REFERENCE(IP_Address); template <> -struct PtrToArg > { +struct PtrToArg> { _FORCE_INLINE_ static Vector convert(const void *p_ptr) { const Vector *dvs = reinterpret_cast *>(p_ptr); Vector ret; diff --git a/core/oa_hash_map.h b/core/oa_hash_map.h index 182ed8b1169..7ceba26be8c 100644 --- a/core/oa_hash_map.h +++ b/core/oa_hash_map.h @@ -48,7 +48,7 @@ */ template > + class Comparator = HashMapComparatorDefault> class OAHashMap { private: diff --git a/core/ordered_hash_map.h b/core/ordered_hash_map.h index a10cf06b75e..055e3e607e1 100644 --- a/core/ordered_hash_map.h +++ b/core/ordered_hash_map.h @@ -45,7 +45,7 @@ */ template , uint8_t MIN_HASH_TABLE_POWER = 3, uint8_t RELATIONSHIP = 8> class OrderedHashMap { - typedef List > InternalList; + typedef List> InternalList; typedef HashMap InternalMap; InternalList list; diff --git a/core/os/mutex.cpp b/core/os/mutex.cpp index 97297dca286..31a0dc2bfa9 100644 --- a/core/os/mutex.cpp +++ b/core/os/mutex.cpp @@ -44,7 +44,7 @@ void _global_unlock() { template class MutexImpl; template class MutexImpl; -template class MutexLock >; -template class MutexLock >; +template class MutexLock>; +template class MutexLock>; #endif diff --git a/core/os/mutex.h b/core/os/mutex.h index 9033f0cb060..b44b1994de2 100644 --- a/core/os/mutex.h +++ b/core/os/mutex.h @@ -76,8 +76,8 @@ using BinaryMutex = MutexImpl; // Non-recursive, handle with care extern template class MutexImpl; extern template class MutexImpl; -extern template class MutexLock >; -extern template class MutexLock >; +extern template class MutexLock>; +extern template class MutexLock>; #else diff --git a/core/os/threaded_array_processor.h b/core/os/threaded_array_processor.h index 9dcd6ceecef..00dc53286e5 100644 --- a/core/os/threaded_array_processor.h +++ b/core/os/threaded_array_processor.h @@ -80,7 +80,7 @@ void thread_process_array(uint32_t p_elements, C *p_instance, M p_method, U p_us threads.resize(OS::get_singleton()->get_processor_count()); for (int i = 0; i < threads.size(); i++) { - threads.write[i] = Thread::create(process_array_thread >, &data); + threads.write[i] = Thread::create(process_array_thread>, &data); } for (int i = 0; i < threads.size(); i++) { diff --git a/core/project_settings.cpp b/core/project_settings.cpp index 3a216103314..36fb016448d 100644 --- a/core/project_settings.cpp +++ b/core/project_settings.cpp @@ -652,7 +652,7 @@ Error ProjectSettings::save() { return save_custom(get_resource_path().plus_file("project.godot")); } -Error ProjectSettings::_save_settings_binary(const String &p_file, const Map > &props, const CustomMap &p_custom, const String &p_custom_features) { +Error ProjectSettings::_save_settings_binary(const String &p_file, const Map> &props, const CustomMap &p_custom, const String &p_custom_features) { Error err; FileAccess *file = FileAccess::open(p_file, FileAccess::WRITE, &err); @@ -663,7 +663,7 @@ Error ProjectSettings::_save_settings_binary(const String &p_file, const Map >::Element *E = props.front(); E; E = E->next()) { + for (Map>::Element *E = props.front(); E; E = E->next()) { for (List::Element *F = E->get().front(); F; F = F->next()) { @@ -700,7 +700,7 @@ Error ProjectSettings::_save_settings_binary(const String &p_file, const Mapstore_32(count); //store how many properties are saved } - for (Map >::Element *E = props.front(); E; E = E->next()) { + for (Map>::Element *E = props.front(); E; E = E->next()) { for (List::Element *F = E->get().front(); F; F = F->next()) { @@ -740,7 +740,7 @@ Error ProjectSettings::_save_settings_binary(const String &p_file, const Map > &props, const CustomMap &p_custom, const String &p_custom_features) { +Error ProjectSettings::_save_settings_text(const String &p_file, const Map> &props, const CustomMap &p_custom, const String &p_custom_features) { Error err; FileAccess *file = FileAccess::open(p_file, FileAccess::WRITE, &err); @@ -761,7 +761,7 @@ Error ProjectSettings::_save_settings_text(const String &p_file, const Mapstore_string("custom_features=\"" + p_custom_features + "\"\n"); file->store_string("\n"); - for (Map >::Element *E = props.front(); E; E = E->next()) { + for (Map>::Element *E = props.front(); E; E = E->next()) { if (E != props.front()) file->store_string("\n"); @@ -838,7 +838,7 @@ Error ProjectSettings::save_custom(const String &p_path, const CustomMap &p_cust vclist.insert(vc); } - Map > props; + Map> props; for (Set<_VCSort>::Element *E = vclist.front(); E; E = E->next()) { diff --git a/core/project_settings.h b/core/project_settings.h index ed153bdc202..8695df560ec 100644 --- a/core/project_settings.h +++ b/core/project_settings.h @@ -97,8 +97,8 @@ protected: Error _load_settings_binary(const String &p_path); Error _load_settings_text_or_binary(const String &p_text_path, const String &p_bin_path); - Error _save_settings_text(const String &p_file, const Map > &props, const CustomMap &p_custom = CustomMap(), const String &p_custom_features = String()); - Error _save_settings_binary(const String &p_file, const Map > &props, const CustomMap &p_custom = CustomMap(), const String &p_custom_features = String()); + Error _save_settings_text(const String &p_file, const Map> &props, const CustomMap &p_custom = CustomMap(), const String &p_custom_features = String()); + Error _save_settings_binary(const String &p_file, const Map> &props, const CustomMap &p_custom = CustomMap(), const String &p_custom_features = String()); Error _save_custom_bnd(const String &p_file); diff --git a/core/reference.h b/core/reference.h index fd42c4e537c..6898bfec3bf 100644 --- a/core/reference.h +++ b/core/reference.h @@ -285,7 +285,7 @@ public: #ifdef PTRCALL_ENABLED template -struct PtrToArg > { +struct PtrToArg> { _FORCE_INLINE_ static Ref convert(const void *p_ptr) { @@ -312,7 +312,7 @@ struct PtrToArg &> { #ifdef DEBUG_METHODS_ENABLED template -struct GetTypeInfo > { +struct GetTypeInfo> { static const Variant::Type VARIANT_TYPE = Variant::OBJECT; static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; diff --git a/core/resource.cpp b/core/resource.cpp index 2afc9e4042b..e329a1574fe 100644 --- a/core/resource.cpp +++ b/core/resource.cpp @@ -149,7 +149,7 @@ void Resource::reload_from_file() { } } -Ref Resource::duplicate_for_local_scene(Node *p_for_scene, Map, Ref > &remap_cache) { +Ref Resource::duplicate_for_local_scene(Node *p_for_scene, Map, Ref> &remap_cache) { List plist; get_property_list(&plist); @@ -190,7 +190,7 @@ Ref Resource::duplicate_for_local_scene(Node *p_for_scene, Map, Ref > &remap_cache) { +void Resource::configure_for_local_scene(Node *p_for_scene, Map, Ref> &remap_cache) { List plist; get_property_list(&plist); @@ -455,7 +455,7 @@ Resource::~Resource() { HashMap ResourceCache::resources; #ifdef TOOLS_ENABLED -HashMap > ResourceCache::resource_path_cache; +HashMap> ResourceCache::resource_path_cache; #endif RWLock *ResourceCache::lock = NULL; @@ -512,7 +512,7 @@ Resource *ResourceCache::get(const String &p_path) { return *res; } -void ResourceCache::get_cached_resources(List > *p_resources) { +void ResourceCache::get_cached_resources(List> *p_resources) { lock->read_lock(); const String *K = NULL; diff --git a/core/resource.h b/core/resource.h index b30788010bc..4b79a39d9d6 100644 --- a/core/resource.h +++ b/core/resource.h @@ -103,8 +103,8 @@ public: int get_subindex() const; virtual Ref duplicate(bool p_subresources = false) const; - Ref duplicate_for_local_scene(Node *p_for_scene, Map, Ref > &remap_cache); - void configure_for_local_scene(Node *p_for_scene, Map, Ref > &remap_cache); + Ref duplicate_for_local_scene(Node *p_for_scene, Map, Ref> &remap_cache); + void configure_for_local_scene(Node *p_for_scene, Map, Ref> &remap_cache); void set_local_to_scene(bool p_enable); bool is_local_to_scene() const; @@ -150,7 +150,7 @@ class ResourceCache { static RWLock *lock; static HashMap resources; #ifdef TOOLS_ENABLED - static HashMap > resource_path_cache; // each tscn has a set of resource paths and IDs + static HashMap> resource_path_cache; // each tscn has a set of resource paths and IDs static RWLock *path_cache_lock; #endif // TOOLS_ENABLED friend void unregister_core_types(); @@ -163,7 +163,7 @@ public: static bool has(const String &p_path); static Resource *get(const String &p_path); static void dump(const char *p_file = NULL, bool p_short = false); - static void get_cached_resources(List > *p_resources); + static void get_cached_resources(List> *p_resources); static int get_cached_resource_count(); }; diff --git a/core/script_language.cpp b/core/script_language.cpp index 428f363b17c..c6645639092 100644 --- a/core/script_language.cpp +++ b/core/script_language.cpp @@ -284,7 +284,7 @@ void ScriptServer::save_global_classes() { } //////////////////// -void ScriptInstance::get_property_state(List > &state) { +void ScriptInstance::get_property_state(List> &state) { List pinfo; get_property_list(&pinfo); diff --git a/core/script_language.h b/core/script_language.h index f1b809425b2..bb7d74dd838 100644 --- a/core/script_language.h +++ b/core/script_language.h @@ -192,7 +192,7 @@ public: virtual Variant::Type get_property_type(const StringName &p_name, bool *r_is_valid = NULL) const = 0; virtual Object *get_owner() { return NULL; } - virtual void get_property_state(List > &state); + virtual void get_property_state(List> &state); virtual void get_method_list(List *p_list) const = 0; virtual bool has_method(const StringName &p_method) const = 0; @@ -375,7 +375,7 @@ public: virtual void get_recognized_extensions(List *p_extensions) const = 0; virtual void get_public_functions(List *p_functions) const = 0; - virtual void get_public_constants(List > *p_constants) const = 0; + virtual void get_public_constants(List> *p_constants) const = 0; struct ProfilingInfo { StringName signature; diff --git a/core/translation.cpp b/core/translation.cpp index 17c23b86cda..7399fa56190 100644 --- a/core/translation.cpp +++ b/core/translation.cpp @@ -995,7 +995,7 @@ String TranslationServer::get_locale_name(const String &p_locale) const { Array TranslationServer::get_loaded_locales() const { Array locales; - for (const Set >::Element *E = translations.front(); E; E = E->next()) { + for (const Set>::Element *E = translations.front(); E; E = E->next()) { const Ref &t = E->get(); ERR_FAIL_COND_V(t.is_null(), Array()); @@ -1072,7 +1072,7 @@ StringName TranslationServer::translate(const StringName &p_message) const { String lang = get_language_code(locale); bool near_match = false; - for (const Set >::Element *E = translations.front(); E; E = E->next()) { + for (const Set>::Element *E = translations.front(); E; E = E->next()) { const Ref &t = E->get(); ERR_FAIL_COND_V(t.is_null(), p_message); String l = t->get_locale(); @@ -1105,7 +1105,7 @@ StringName TranslationServer::translate(const StringName &p_message) const { String fallback_lang = get_language_code(fallback); near_match = false; - for (const Set >::Element *E = translations.front(); E; E = E->next()) { + for (const Set>::Element *E = translations.front(); E; E = E->next()) { const Ref &t = E->get(); ERR_FAIL_COND_V(t.is_null(), p_message); String l = t->get_locale(); diff --git a/core/translation.h b/core/translation.h index 0448ea56c51..b9e07fa2b1c 100644 --- a/core/translation.h +++ b/core/translation.h @@ -71,7 +71,7 @@ class TranslationServer : public Object { String locale; String fallback; - Set > translations; + Set> translations; Ref tool_translation; Map locale_name_map; diff --git a/core/type_info.h b/core/type_info.h index 5dacf67de45..618419a3239 100644 --- a/core/type_info.h +++ b/core/type_info.h @@ -201,7 +201,7 @@ struct GetTypeInfo { #define MAKE_TEMPLATE_TYPE_INFO(m_template, m_type, m_var_type) \ template <> \ - struct GetTypeInfo > { \ + struct GetTypeInfo> { \ static const Variant::Type VARIANT_TYPE = m_var_type; \ static const GodotTypeInfo::Metadata METADATA = GodotTypeInfo::METADATA_NONE; \ static inline PropertyInfo get_class_info() { \ diff --git a/core/variant.cpp b/core/variant.cpp index b82602a5a40..d12a15ec9df 100644 --- a/core/variant.cpp +++ b/core/variant.cpp @@ -2325,31 +2325,31 @@ inline DA _convert_array_from_variant(const Variant &p_variant) { return _convert_array(p_variant.operator Array()); } case Variant::PACKED_BYTE_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_INT32_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_INT64_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_FLOAT32_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_FLOAT64_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_STRING_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_VECTOR2_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_VECTOR3_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } case Variant::PACKED_COLOR_ARRAY: { - return _convert_array >(p_variant.operator Vector()); + return _convert_array>(p_variant.operator Vector()); } default: { return DA(); @@ -2370,21 +2370,21 @@ Variant::operator Vector() const { if (type == PACKED_BYTE_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { if (type == PACKED_INT32_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { if (type == PACKED_INT64_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { @@ -2392,7 +2392,7 @@ Variant::operator Vector() const { if (type == PACKED_FLOAT32_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { @@ -2400,7 +2400,7 @@ Variant::operator Vector() const { if (type == PACKED_FLOAT64_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { @@ -2408,21 +2408,21 @@ Variant::operator Vector() const { if (type == PACKED_STRING_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { if (type == PACKED_VECTOR3_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { if (type == PACKED_VECTOR2_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } Variant::operator Vector() const { @@ -2430,7 +2430,7 @@ Variant::operator Vector() const { if (type == PACKED_COLOR_ARRAY) return static_cast *>(_data.packed_array)->array; else - return _convert_array_from_variant >(*this); + return _convert_array_from_variant>(*this); } /* helpers */ diff --git a/core/vector.h b/core/vector.h index d3476679ff8..51a73e4ae47 100644 --- a/core/vector.h +++ b/core/vector.h @@ -103,7 +103,7 @@ public: void sort() { - sort_custom<_DefaultComparator >(); + sort_custom<_DefaultComparator>(); } void ordered_insert(const T &p_val) { diff --git a/doc/classes/TreeItem.xml b/doc/classes/TreeItem.xml index f498919f9ea..84aa3a36863 100644 --- a/doc/classes/TreeItem.xml +++ b/doc/classes/TreeItem.xml @@ -23,8 +23,7 @@ - Adds a button with [Texture2D] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip - [/code]. + Adds a button with [Texture2D] [code]button[/code] at column [code]column[/code]. The [code]button_idx[/code] index is used to identify the button when calling other methods. If not specified, the next available index is used, which may be retrieved by calling [method get_button_count] immediately after this method. Optionally, the button can be [code]disabled[/code] and have a [code]tooltip[/code]. diff --git a/drivers/dummy/rasterizer_dummy.h b/drivers/dummy/rasterizer_dummy.h index 4df28e3ea45..4dc634aefa0 100644 --- a/drivers/dummy/rasterizer_dummy.h +++ b/drivers/dummy/rasterizer_dummy.h @@ -167,7 +167,7 @@ public: Vector index_array; int index_count; AABB aabb; - Vector > blend_shapes; + Vector> blend_shapes; Vector bone_aabbs; }; @@ -181,8 +181,8 @@ public: mutable RID_PtrOwner mesh_owner; virtual RID texture_2d_create(const Ref &p_image) { return RID(); } - virtual RID texture_2d_layered_create(const Vector > &p_layers, VS::TextureLayeredType p_layered_type) { return RID(); } - virtual RID texture_3d_create(const Vector > &p_slices) { return RID(); } + virtual RID texture_2d_layered_create(const Vector> &p_layers, VS::TextureLayeredType p_layered_type) { return RID(); } + virtual RID texture_3d_create(const Vector> &p_slices) { return RID(); } virtual RID texture_proxy_create(RID p_base) { return RID(); } virtual void texture_2d_update_immediate(RID p_texture, const Ref &p_image, int p_layer = 0) {} diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 55b1c7e5606..0f5452effc9 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -2270,7 +2270,7 @@ static Vector _unpack_half_floats(const Vector &array, uint32_ return ret; } -void RasterizerStorageGLES2::mesh_add_surface(RID p_mesh, uint32_t p_format, VS::PrimitiveType p_primitive, const Vector &p_array, int p_vertex_count, const Vector &p_index_array, int p_index_count, const AABB &p_aabb, const Vector > &p_blend_shapes, const Vector &p_bone_aabbs) { +void RasterizerStorageGLES2::mesh_add_surface(RID p_mesh, uint32_t p_format, VS::PrimitiveType p_primitive, const Vector &p_array, int p_vertex_count, const Vector &p_index_array, int p_index_count, const AABB &p_aabb, const Vector> &p_blend_shapes, const Vector &p_bone_aabbs) { Mesh *mesh = mesh_owner.getornull(p_mesh); ERR_FAIL_COND(!mesh); @@ -2737,10 +2737,10 @@ AABB RasterizerStorageGLES2::mesh_surface_get_aabb(RID p_mesh, int p_surface) co return mesh->surfaces[p_surface]->aabb; } -Vector > RasterizerStorageGLES2::mesh_surface_get_blend_shapes(RID p_mesh, int p_surface) const { +Vector> RasterizerStorageGLES2::mesh_surface_get_blend_shapes(RID p_mesh, int p_surface) const { const Mesh *mesh = mesh_owner.getornull(p_mesh); - ERR_FAIL_COND_V(!mesh, Vector >()); - ERR_FAIL_INDEX_V(p_surface, mesh->surfaces.size(), Vector >()); + ERR_FAIL_COND_V(!mesh, Vector>()); + ERR_FAIL_INDEX_V(p_surface, mesh->surfaces.size(), Vector>()); #ifndef TOOLS_ENABLED ERR_PRINT("OpenGL ES 2.0 does not allow retrieving mesh array data"); #endif diff --git a/drivers/gles2/rasterizer_storage_gles2.h b/drivers/gles2/rasterizer_storage_gles2.h index 6fbfe57778e..86965730e09 100644 --- a/drivers/gles2/rasterizer_storage_gles2.h +++ b/drivers/gles2/rasterizer_storage_gles2.h @@ -275,7 +275,7 @@ public: RenderTarget *render_target; - Vector > images; + Vector> images; bool redraw_if_visible; @@ -541,7 +541,7 @@ public: Map params; SelfList list; SelfList dirty_list; - Vector > textures; + Vector> textures; float line_width; int render_priority; @@ -650,7 +650,7 @@ public: Vector data; Vector index_data; - Vector > blend_shape_data; + Vector> blend_shape_data; int total_data_size; @@ -702,7 +702,7 @@ public: virtual RID mesh_create(); - virtual void mesh_add_surface(RID p_mesh, uint32_t p_format, VS::PrimitiveType p_primitive, const Vector &p_array, int p_vertex_count, const Vector &p_index_array, int p_index_count, const AABB &p_aabb, const Vector > &p_blend_shapes = Vector >(), const Vector &p_bone_aabbs = Vector()); + virtual void mesh_add_surface(RID p_mesh, uint32_t p_format, VS::PrimitiveType p_primitive, const Vector &p_array, int p_vertex_count, const Vector &p_index_array, int p_index_count, const AABB &p_aabb, const Vector> &p_blend_shapes = Vector>(), const Vector &p_bone_aabbs = Vector()); virtual void mesh_set_blend_shape_count(RID p_mesh, int p_amount); virtual int mesh_get_blend_shape_count(RID p_mesh) const; @@ -725,7 +725,7 @@ public: virtual VS::PrimitiveType mesh_surface_get_primitive_type(RID p_mesh, int p_surface) const; virtual AABB mesh_surface_get_aabb(RID p_mesh, int p_surface) const; - virtual Vector > mesh_surface_get_blend_shapes(RID p_mesh, int p_surface) const; + virtual Vector> mesh_surface_get_blend_shapes(RID p_mesh, int p_surface) const; virtual Vector mesh_surface_get_skeleton_aabb(RID p_mesh, int p_surface) const; virtual void mesh_remove_surface(RID p_mesh, int p_surface); diff --git a/drivers/gles2/shader_compiler_gles2.h b/drivers/gles2/shader_compiler_gles2.h index e39ef5e7bd7..dd10a27c0dd 100644 --- a/drivers/gles2/shader_compiler_gles2.h +++ b/drivers/gles2/shader_compiler_gles2.h @@ -41,7 +41,7 @@ class ShaderCompilerGLES2 { public: struct IdentifierActions { - Map > render_mode_values; + Map> render_mode_values; Map render_mode_flags; Map usage_flag_pointers; Map write_flag_pointers; diff --git a/drivers/gles2/shader_gles2.h b/drivers/gles2/shader_gles2.h index f2953c9ae8e..d5e8159479c 100644 --- a/drivers/gles2/shader_gles2.h +++ b/drivers/gles2/shader_gles2.h @@ -179,7 +179,7 @@ private: int max_image_units; - Map > > uniform_values; + Map>> uniform_values; protected: _FORCE_INLINE_ int _get_uniform(int p_which) const; diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index 361982b28d1..76541c3cd52 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -57,7 +57,7 @@ void RenderingDeviceVulkan::_free_dependencies(RID p_id) { //direct dependencies must be freed - Map >::Element *E = dependency_map.find(p_id); + Map>::Element *E = dependency_map.find(p_id); if (E) { while (E->get().size()) { @@ -72,7 +72,7 @@ void RenderingDeviceVulkan::_free_dependencies(RID p_id) { if (E) { for (Set::Element *F = E->get().front(); F; F = F->next()) { - Map >::Element *G = dependency_map.find(F->get()); + Map>::Element *G = dependency_map.find(F->get()); ERR_CONTINUE(!G); ERR_CONTINUE(!G->get().has(p_id)); G->get().erase(p_id); @@ -1555,7 +1555,7 @@ void RenderingDeviceVulkan::_buffer_memory_barrier(VkBuffer buffer, uint64_t p_f /**** TEXTURE ****/ /*****************/ -RID RenderingDeviceVulkan::texture_create(const TextureFormat &p_format, const TextureView &p_view, const Vector > &p_data) { +RID RenderingDeviceVulkan::texture_create(const TextureFormat &p_format, const TextureView &p_view, const Vector> &p_data) { _THREAD_SAFE_METHOD_ @@ -3568,8 +3568,8 @@ bool RenderingDeviceVulkan::_uniform_add_binding(Vector &p_stages) { //descriptor layouts - Vector > set_bindings; - Vector > uniform_info; + Vector> set_bindings; + Vector> uniform_info; Shader::PushConstant push_constant; push_constant.push_constant_size = 0; push_constant.push_constants_vk_stage = 0; @@ -4223,9 +4223,9 @@ RID RenderingDeviceVulkan::uniform_set_create(const Vector &p_uniforms, DescriptorPoolKey pool_key; //to keep them alive until update call - List > buffer_infos; - List > buffer_views; - List > image_infos; + List> buffer_infos; + List> buffer_views; + List> image_infos; //used for verification to make sure a uniform set does not use a framebuffer bound texture Vector attachable_textures; Vector mutable_sampled_textures; diff --git a/drivers/vulkan/rendering_device_vulkan.h b/drivers/vulkan/rendering_device_vulkan.h index 30c10e922e2..4a224f0ceb8 100644 --- a/drivers/vulkan/rendering_device_vulkan.h +++ b/drivers/vulkan/rendering_device_vulkan.h @@ -98,8 +98,8 @@ class RenderingDeviceVulkan : public RenderingDevice { VkDevice device; - Map > dependency_map; //IDs to IDs that depend on it - Map > reverse_dependency_map; //same as above, but in reverse + Map> dependency_map; //IDs to IDs that depend on it + Map> reverse_dependency_map; //same as above, but in reverse void _add_dependency(RID p_id, RID p_depends_on); void _free_dependencies(RID p_id); @@ -602,7 +602,7 @@ class RenderingDeviceVulkan : public RenderingDevice { uint32_t usage; }; - Map > descriptor_pools; + Map> descriptor_pools; uint32_t max_descriptors_per_pool; DescriptorPool *_descriptor_pool_allocate(const DescriptorPoolKey &p_key); @@ -968,7 +968,7 @@ class RenderingDeviceVulkan : public RenderingDevice { void _free_rids(T &p_owner, const char *p_type); public: - virtual RID texture_create(const TextureFormat &p_format, const TextureView &p_view, const Vector > &p_data = Vector >()); + virtual RID texture_create(const TextureFormat &p_format, const TextureView &p_view, const Vector> &p_data = Vector>()); virtual RID texture_create_shared(const TextureView &p_view, RID p_with_texture); virtual RID texture_create_shared_from_slice(const TextureView &p_view, RID p_with_texture, uint32_t p_layer, uint32_t p_mipmap, TextureSliceType p_slice_type = TEXTURE_SLICE_2D); diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index e0839a9f27b..6dcc9dd8aee 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -1076,7 +1076,7 @@ void AnimationBezierTrackEdit::duplicate_selection() { undo_redo->create_action(TTR("Anim Duplicate Keys")); - List > new_selection_values; + List> new_selection_values; for (Set::Element *E = selection.back(); E; E = E->prev()) { @@ -1103,7 +1103,7 @@ void AnimationBezierTrackEdit::duplicate_selection() { //reselect duplicated selection.clear(); - for (List >::Element *E = new_selection_values.front(); E; E = E->next()) { + for (List>::Element *E = new_selection_values.front(); E; E = E->next()) { int track = E->get().first; float time = E->get().second; diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 095dbd6849b..fb427afe241 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -752,7 +752,7 @@ public: if (animation != p_anim) return; - for (Map >::Element *E = key_ofs_map.front(); E; E = E->next()) { + for (Map>::Element *E = key_ofs_map.front(); E; E = E->next()) { for (List::Element *F = E->value().front(); F; F = F->next()) { @@ -777,7 +777,7 @@ public: bool update_obj = false; bool change_notify_deserved = false; - for (Map >::Element *E = key_ofs_map.front(); E; E = E->next()) { + for (Map>::Element *E = key_ofs_map.front(); E; E = E->next()) { int track = E->key(); for (List::Element *F = E->value().front(); F; F = F->next()) { @@ -1060,7 +1060,7 @@ public: bool _get(const StringName &p_name, Variant &r_ret) const { - for (Map >::Element *E = key_ofs_map.front(); E; E = E->next()) { + for (Map>::Element *E = key_ofs_map.front(); E; E = E->next()) { int track = E->key(); for (List::Element *F = E->value().front(); F; F = F->next()) { @@ -1208,7 +1208,7 @@ public: bool show_time = true; bool same_track_type = true; bool same_key_type = true; - for (Map >::Element *E = key_ofs_map.front(); E; E = E->next()) { + for (Map>::Element *E = key_ofs_map.front(); E; E = E->next()) { int track = E->key(); ERR_FAIL_INDEX(track, animation->get_track_count()); @@ -1362,7 +1362,7 @@ public: Ref animation; - Map > key_ofs_map; + Map> key_ofs_map; Map base_map; PropertyInfo hint; @@ -4892,7 +4892,7 @@ void AnimationTrackEditor::_update_key_edit() { multi_key_edit = memnew(AnimationMultiTrackKeyEdit); multi_key_edit->animation = animation; - Map > key_ofs_map; + Map> key_ofs_map; Map base_map; int first_track = -1; for (Map::Element *E = selection.front(); E; E = E->next()) { @@ -5186,7 +5186,7 @@ void AnimationTrackEditor::_anim_duplicate_keys(bool transpose) { undo_redo->create_action(TTR("Anim Duplicate Keys")); - List > new_selection_values; + List> new_selection_values; for (Map::Element *E = selection.back(); E; E = E->prev()) { @@ -5224,7 +5224,7 @@ void AnimationTrackEditor::_anim_duplicate_keys(bool transpose) { //reselect duplicated Map new_selection; - for (List >::Element *E = new_selection_values.front(); E; E = E->next()) { + for (List>::Element *E = new_selection_values.front(); E; E = E->next()) { int track = E->get().first; float time = E->get().second; diff --git a/editor/animation_track_editor.h b/editor/animation_track_editor.h index 26f9c15f6c7..8de56a153ee 100644 --- a/editor/animation_track_editor.h +++ b/editor/animation_track_editor.h @@ -430,7 +430,7 @@ class AnimationTrackEditor : public VBoxContainer { Rect2 box_select_rect; void _scroll_input(const Ref &p_event); - Vector > track_edit_plugins; + Vector> track_edit_plugins; void _cancel_bezier_edit(); void _bezier_edit(int p_for_track); diff --git a/editor/collada/collada.cpp b/editor/collada/collada.cpp index cf39abdc530..8ef9d17083d 100644 --- a/editor/collada/collada.cpp +++ b/editor/collada/collada.cpp @@ -1773,12 +1773,12 @@ void Collada::_parse_animation(XMLParser &parser) { return; } - Map > float_sources; - Map > string_sources; + Map> float_sources; + Map> string_sources; Map source_strides; - Map > samplers; - Map > source_param_names; - Map > source_param_types; + Map> samplers; + Map> source_param_names; + Map> source_param_types; String id = ""; if (parser.has_attribute("id")) diff --git a/editor/collada/collada.h b/editor/collada/collada.h index 10ed42260bb..4707d7d779d 100644 --- a/editor/collada/collada.h +++ b/editor/collada/collada.h @@ -570,8 +570,8 @@ public: Vector animation_clips; Vector animation_tracks; - Map > referenced_tracks; - Map > by_id_tracks; + Map> referenced_tracks; + Map> by_id_tracks; float animation_length; diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index eea92fb7edf..23df649851c 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -977,7 +977,7 @@ void ConnectionsDock::update_tree() { String descr; bool found = false; - Map >::Element *G = descr_cache.find(base); + Map>::Element *G = descr_cache.find(base); if (G) { Map::Element *F = G->get().find(signal_name); if (F) { diff --git a/editor/connections_dialog.h b/editor/connections_dialog.h index 988a8a1271a..8f29a4f7202 100644 --- a/editor/connections_dialog.h +++ b/editor/connections_dialog.h @@ -173,7 +173,7 @@ class ConnectionsDock : public VBoxContainer { PopupMenu *slot_menu; UndoRedo *undo_redo; - Map > descr_cache; + Map> descr_cache; void _make_or_edit_connection(); void _connect(ConnectDialog::ConnectionData cToMake); diff --git a/editor/debugger/editor_debugger_tree.cpp b/editor/debugger/editor_debugger_tree.cpp index 441f6082c34..019a5d0fc3e 100644 --- a/editor/debugger/editor_debugger_tree.cpp +++ b/editor/debugger/editor_debugger_tree.cpp @@ -132,7 +132,7 @@ void EditorDebuggerTree::update_scene_tree(const SceneDebuggerTree *p_tree, int const String filter = EditorNode::get_singleton()->get_scene_tree_dock()->get_filter(); // Nodes are in a flatten list, depth first. Use a stack of parents, avoid recursion. - List > parents; + List> parents; for (int i = 0; i < p_tree->nodes.size(); i++) { TreeItem *parent = NULL; if (parents.size()) { // Find last parent. diff --git a/editor/debugger/editor_profiler.cpp b/editor/debugger/editor_profiler.cpp index 2f3ad210b23..ca4979563d3 100644 --- a/editor/debugger/editor_profiler.cpp +++ b/editor/debugger/editor_profiler.cpp @@ -611,8 +611,8 @@ bool EditorProfiler::is_profiling() { return activate->is_pressed(); } -Vector > EditorProfiler::get_data_as_csv() const { - Vector > res; +Vector> EditorProfiler::get_data_as_csv() const { + Vector> res; if (frame_metrics.empty()) { return res; diff --git a/editor/debugger/editor_profiler.h b/editor/debugger/editor_profiler.h index 0a442ddd5ce..4afd2c8302d 100644 --- a/editor/debugger/editor_profiler.h +++ b/editor/debugger/editor_profiler.h @@ -169,7 +169,7 @@ public: void clear(); - Vector > get_data_as_csv() const; + Vector> get_data_as_csv() const; EditorProfiler(); }; diff --git a/editor/debugger/editor_visual_profiler.cpp b/editor/debugger/editor_visual_profiler.cpp index 52aa4189225..48425062d13 100644 --- a/editor/debugger/editor_visual_profiler.cpp +++ b/editor/debugger/editor_visual_profiler.cpp @@ -678,8 +678,8 @@ bool EditorVisualProfiler::is_profiling() { return activate->is_pressed(); } -Vector > EditorVisualProfiler::get_data_as_csv() const { - Vector > res; +Vector> EditorVisualProfiler::get_data_as_csv() const { + Vector> res; #if 0 if (frame_metrics.empty()) { return res; diff --git a/editor/debugger/editor_visual_profiler.h b/editor/debugger/editor_visual_profiler.h index 5194c08b96e..d3a758557c2 100644 --- a/editor/debugger/editor_visual_profiler.h +++ b/editor/debugger/editor_visual_profiler.h @@ -146,7 +146,7 @@ public: void clear(); - Vector > get_data_as_csv() const; + Vector> get_data_as_csv() const; EditorVisualProfiler(); }; diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp index 3d567ed2b3e..d7c0c3d2bfd 100644 --- a/editor/debugger/script_editor_debugger.cpp +++ b/editor/debugger/script_editor_debugger.cpp @@ -165,7 +165,7 @@ void ScriptEditorDebugger::_file_selected(const String &p_file) { file->store_csv_line(line); // values - List >::Element *E = perf_history.back(); + List>::Element *E = perf_history.back(); while (E) { Vector &perf_data = E->get(); @@ -178,7 +178,7 @@ void ScriptEditorDebugger::_file_selected(const String &p_file) { } file->store_string("\n"); - Vector > profiler_data = profiler->get_data_as_csv(); + Vector> profiler_data = profiler->get_data_as_csv(); for (int i = 0; i < profiler_data.size(); i++) { file->store_csv_line(profiler_data[i]); } @@ -728,7 +728,7 @@ void ScriptEditorDebugger::_performance_draw() { float spacing = point_sep / float(cols); float from = r.size.width; - List >::Element *E = perf_history.front(); + List>::Element *E = perf_history.front(); float prev = -1; while (from >= 0 && E) { diff --git a/editor/debugger/script_editor_debugger.h b/editor/debugger/script_editor_debugger.h index e7ce9175438..7944d7cb99a 100644 --- a/editor/debugger/script_editor_debugger.h +++ b/editor/debugger/script_editor_debugger.h @@ -109,7 +109,7 @@ private: // Each debugger should have it's tree in the future I guess. const Tree *editor_remote_tree = NULL; - List > perf_history; + List> perf_history; Vector perf_max; Vector perf_items; diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp index 0c95a64d066..5a0accd45c7 100644 --- a/editor/dependency_editor.cpp +++ b/editor/dependency_editor.cpp @@ -63,7 +63,7 @@ void DependencyEditor::_load_pressed(Object *p_item, int p_cell, int p_button) { search->popup_centered_ratio(0.65); // So it doesn't completely cover the dialog below it. } -void DependencyEditor::_fix_and_find(EditorFileSystemDirectory *efsd, Map > &candidates) { +void DependencyEditor::_fix_and_find(EditorFileSystemDirectory *efsd, Map> &candidates) { for (int i = 0; i < efsd->get_subdir_count(); i++) { _fix_and_find(efsd->get_subdir(i), candidates); @@ -124,7 +124,7 @@ void DependencyEditor::_fix_all() { if (!EditorFileSystem::get_singleton()->get_filesystem()) return; - Map > candidates; + Map> candidates; for (List::Element *E = missing.front(); E; E = E->next()) { @@ -140,7 +140,7 @@ void DependencyEditor::_fix_all() { Map remaps; - for (Map >::Element *E = candidates.front(); E; E = E->next()) { + for (Map>::Element *E = candidates.front(); E; E = E->next()) { for (Map::Element *F = E->get().front(); F; F = F->next()) { diff --git a/editor/dependency_editor.h b/editor/dependency_editor.h index be8d34f4060..ee740727313 100644 --- a/editor/dependency_editor.h +++ b/editor/dependency_editor.h @@ -52,7 +52,7 @@ class DependencyEditor : public AcceptDialog { String editing; List missing; - void _fix_and_find(EditorFileSystemDirectory *efsd, Map > &candidates); + void _fix_and_find(EditorFileSystemDirectory *efsd, Map> &candidates); void _searched(const String &p_path); void _load_pressed(Object *p_item, int p_cell, int p_button); diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 38ff9cd5fcb..66134b44280 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -687,10 +687,10 @@ void DocData::generate(bool p_basic_types) { c.methods.push_back(md); } - List > cinfo; + List> cinfo; lang->get_public_constants(&cinfo); - for (List >::Element *E = cinfo.front(); E; E = E->next()) { + for (List>::Element *E = cinfo.front(); E; E = E->next()) { ConstantDoc cd; cd.name = E->get().first; diff --git a/editor/editor_asset_installer.cpp b/editor/editor_asset_installer.cpp index 73c70f422d3..e26d44025fb 100644 --- a/editor/editor_asset_installer.cpp +++ b/editor/editor_asset_installer.cpp @@ -110,7 +110,7 @@ void EditorAssetInstaller::open(const String &p_path, int p_depth) { ret = unzGoToNextFile(pkg); } - Map > extension_guess; + Map> extension_guess; { extension_guess["png"] = get_icon("ImageTexture", "EditorIcons"); extension_guess["jpg"] = get_icon("ImageTexture", "EditorIcons"); diff --git a/editor/editor_data.cpp b/editor/editor_data.cpp index 192e7d286f8..1c19327da7a 100644 --- a/editor/editor_data.cpp +++ b/editor/editor_data.cpp @@ -521,7 +521,7 @@ Object *EditorData::instance_custom_type(const String &p_type, const String &p_i void EditorData::remove_custom_type(const String &p_type) { - for (Map >::Element *E = custom_types.front(); E; E = E->next()) { + for (Map>::Element *E = custom_types.front(); E; E = E->next()) { for (int i = 0; i < E->get().size(); i++) { if (E->get()[i].name == p_type) { diff --git a/editor/editor_data.h b/editor/editor_data.h index 8a6f2f63f62..5095ea84798 100644 --- a/editor/editor_data.h +++ b/editor/editor_data.h @@ -135,7 +135,7 @@ private: String name; Variant value; }; - Map > custom_types; + Map> custom_types; List clipboard; UndoRedo undo_redo; @@ -181,7 +181,7 @@ public: void add_custom_type(const String &p_type, const String &p_inherits, const Ref