mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Address some clang-tidy warnings
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user