clang-tidy modernize
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include "title.h"
|
||||
|
||||
#include <SDL3/SDL.h> // Para SDL_GetTicks, Uint32, SDL_EventType
|
||||
#include <stddef.h> // Para size_t
|
||||
|
||||
#include <algorithm> // Para find_if
|
||||
#include <cstddef> // Para size_t
|
||||
#include <iostream> // Para basic_ostream, basic_ostream::operator<<
|
||||
#include <string> // Para basic_string, char_traits, operator+
|
||||
#include <vector> // Para vector
|
||||
@@ -513,7 +513,7 @@ void Title::renderPlayers() {
|
||||
}
|
||||
|
||||
// Obtiene un jugador a partir de su "id"
|
||||
std::shared_ptr<Player> Title::getPlayer(int id) {
|
||||
auto Title::getPlayer(int id) -> std::shared_ptr<Player> {
|
||||
auto it = std::find_if(players_.begin(), players_.end(), [id](const auto &player) { return player->getId() == id; });
|
||||
|
||||
if (it != players_.end()) {
|
||||
|
||||
Reference in New Issue
Block a user