mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 18:25:21 +01:00
Address some clang-tidy warnings
This commit is contained in:
@@ -21,7 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "cpp_api/s_internal.h"
|
||||
#include "common/c_converter.h"
|
||||
|
||||
void ScriptApiMainMenu::setMainMenuData(MainMenuDataForScript *data)
|
||||
void ScriptApiMainMenu::setMainMenuData(const MainMenuDataForScript *data)
|
||||
{
|
||||
SCRIPTAPI_PRECHECKHEADER
|
||||
|
||||
@@ -38,7 +38,7 @@ void ScriptApiMainMenu::setMainMenuData(MainMenuDataForScript *data)
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
||||
void ScriptApiMainMenu::handleMainMenuEvent(std::string text)
|
||||
void ScriptApiMainMenu::handleMainMenuEvent(const std::string &text)
|
||||
{
|
||||
SCRIPTAPI_PRECHECKHEADER
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ public:
|
||||
* Hand over MainMenuDataForScript to lua to inform lua of the content
|
||||
* @param data the data
|
||||
*/
|
||||
void setMainMenuData(MainMenuDataForScript *data);
|
||||
void setMainMenuData(const MainMenuDataForScript *data);
|
||||
|
||||
/**
|
||||
* process events received from formspec
|
||||
* @param text events in textual form
|
||||
*/
|
||||
void handleMainMenuEvent(std::string text);
|
||||
void handleMainMenuEvent(const std::string &text);
|
||||
|
||||
/**
|
||||
* process field data received from formspec
|
||||
|
||||
Reference in New Issue
Block a user