cppcheck
This commit is contained in:
@@ -34,13 +34,13 @@ class Asset {
|
||||
bool verbose; // Indica si ha de mostrar información por pantalla
|
||||
|
||||
// Comprueba que existe un fichero
|
||||
bool checkFile(std::string executablePath);
|
||||
bool checkFile(const std::string &executablePath);
|
||||
|
||||
// Devuelve el nombre del tipo de recurso
|
||||
std::string getTypeName(int type);
|
||||
|
||||
// Constructor privado (usar Asset::init)
|
||||
Asset(std::string path);
|
||||
explicit Asset(const std::string &path);
|
||||
|
||||
// Instancia única
|
||||
static Asset *instance;
|
||||
@@ -52,10 +52,10 @@ class Asset {
|
||||
static auto get() -> Asset *; // Obtiene el puntero a la instancia
|
||||
|
||||
// Añade un elemento a la lista
|
||||
void add(std::string file, enum assetType type, bool required = true, bool absolute = false);
|
||||
void add(const std::string &file, enum assetType type, bool required = true, bool absolute = false);
|
||||
|
||||
// Devuelve un elemento de la lista a partir de una cadena
|
||||
std::string get(std::string text);
|
||||
std::string get(const std::string &text);
|
||||
|
||||
// Devuelve toda la lista de items registrados
|
||||
const std::vector<item_t> &getAll() const { return fileList; }
|
||||
|
||||
Reference in New Issue
Block a user