Mes recomanacions de cppcheck

This commit is contained in:
2024-10-13 19:26:27 +02:00
parent 46540ad7c3
commit babf02226c
22 changed files with 291 additions and 369 deletions

View File

@@ -118,7 +118,7 @@ public:
void render();
// Pone las texturas del jugador
void setPlayerTextures(std::vector<std::shared_ptr<Texture>> texture);
void setPlayerTextures(const std::vector<std::shared_ptr<Texture>> &texture);
// Actua en consecuencia de la entrada recibida
void setInput(InputType input);
@@ -271,10 +271,10 @@ public:
void decContinueCounter();
// Establece el nombre del jugador
void setName(std::string name);
void setName(const std::string &name);
// Establece el nombre del jugador para la tabla de mejores puntuaciones
void setRecordName(std::string record_name);
void setRecordName(const std::string &record_name);
// Obtiene el nombre del jugador
std::string getName() const;