diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-07 12:19:10 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-10-29 17:16:37 +0100 |
commit | 63fffadacc51fb7c4915361f0286682e08a55cb1 (patch) | |
tree | 94b49c6afadaf91541076d2a57553a6c5097422e /src/gui/setup_players.h | |
parent | f0f2496a25cedc0cf9076491ccaccab0647e16f5 (diff) | |
download | mana-63fffadacc51fb7c4915361f0286682e08a55cb1.tar.gz mana-63fffadacc51fb7c4915361f0286682e08a55cb1.tar.bz2 mana-63fffadacc51fb7c4915361f0286682e08a55cb1.tar.xz mana-63fffadacc51fb7c4915361f0286682e08a55cb1.zip |
Avoid some needless pointer indirection
* Don't use `PlayerRelation*` in `mRelations`, but just store the value.
* Pass `std::vector<PlayerIgnoreStrategy *>` by reference instead of
pointer.
* Return player list in `PlayerRelationsManager::getPlayers` by value
instead of pointer.
Overall these changes simplify the code, making it less prone to errors.
Diffstat (limited to 'src/gui/setup_players.h')
0 files changed, 0 insertions, 0 deletions