1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Address some clang-tidy warnings

This commit is contained in:
sfan5 2023-12-23 13:02:17 +01:00
parent 322c4a5b2b
commit 961652c2e9
17 changed files with 35 additions and 36 deletions

View file

@ -34,7 +34,7 @@ private:
* @param name name of variable to read
* @return string value of requested variable
*/
static std::string getTextData(lua_State *L, std::string name);
static std::string getTextData(lua_State *L, const std::string &name);
/**
* read an integer variable from gamedata table within lua stack
@ -42,7 +42,7 @@ private:
* @param name name of variable to read
* @return integer value of requested variable
*/
static int getIntegerData(lua_State *L, std::string name,bool& valid);
static int getIntegerData(lua_State *L, const std::string &name, bool& valid);
/**
* read a bool variable from gamedata table within lua stack
@ -50,7 +50,7 @@ private:
* @param name name of variable to read
* @return bool value of requested variable
*/
static int getBoolData(lua_State *L, std::string name,bool& valid);
static int getBoolData(lua_State *L, const std::string &name ,bool& valid);
/**
* Checks if a path may be modified. Paths in the temp directory or the user