ddnet/src/game/client
bors[bot] ccf0622984
Merge #5252
5252: Use std::vector instead of array, remove base/tl/array.h, algorithm.h, allocator.h, range.h r=def- a=Robyt3

Replaces all usages of `array` with `std::vector`.

I adjusted variable names of variables I changed to use the `v` prefix. Not so in the editor however, as there are already many changes due to clang-tidy enforcing the use of for-each loops.

This allows us to remove all remaining `base/tl` headers except `threading.h`.

Clang-tidy now finds `clang-analyzer-cplusplus.NewDelete` (Use of memory after it is freed), which is also fixed here, though it appears to be a false-positive.

This last remaining usages of `goto` are also removed.

## Checklist

- [X] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2022-05-28 10:56:21 +00:00
..
components Merge #5252 2022-05-28 10:56:21 +00:00
prediction reintroduce shotgun bug 2022-05-28 00:58:33 +02:00
animstate.cpp Fix clang-analyzer-core.UndefinedBinaryOperatorResult 2020-10-14 15:45:47 +02:00
animstate.h Remove unnecessary trailing semicolons after method declarations 2022-03-08 20:01:26 +01:00
component.cpp Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
component.h Unify logging infrastructure between IConsole and dbg_msg 2022-04-29 15:21:26 +02:00
gameclient.cpp Move CMenus::UseMouseButtons to CUI::SetEnabled 2022-05-27 19:43:12 +02:00
gameclient.h Mark virtual function as override using a script: 2022-05-17 23:47:32 +02:00
lineinput.cpp Remove base/tl/base.h 2022-05-15 20:36:16 +02:00
lineinput.h m_DisplayStr -> m_aDisplayStr 2022-03-31 12:52:24 +02:00
projectile_data.cpp Sanitize owner data in client (fixes #4388) 2021-11-24 15:41:27 +01:00
projectile_data.h force tunezone 2021-04-23 11:01:38 +08:00
race.cpp Add modernize-deprecated-headers 2022-02-15 00:22:52 +01:00
race.h Fix all the header guards and adjust the script a little 2018-07-06 16:11:38 +02:00
render.cpp Extract CRenderTools::RenderCursor 2022-05-27 19:43:12 +02:00
render.h Extract CRenderTools::RenderCursor 2022-05-27 19:43:12 +02:00
render_map.cpp Add missing nanosecond conversions 2022-05-22 16:08:11 +02:00
skin.h Use std::vector<CSkin> instead of sorted_array 2022-05-27 00:03:13 +02:00
ui.cpp Merge #5254 #5257 2022-05-27 18:37:17 +00:00
ui.h Merge #5254 #5257 2022-05-27 18:37:17 +00:00
ui_ex.cpp Use SetActiveItem(nullptr) instead of SetActiveItem(0) 2022-05-27 11:59:14 +02:00
ui_ex.h Auto select search string on hot key 2022-03-13 19:12:06 +01:00