diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-04-23 09:52:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-23 09:52:40 +0200 |
commit | 91a9382c25328075d1a27593b22b0a75863951e1 (patch) | |
tree | c0806621a7af000f31360a78d486d8e25f3bf52f /src/script/cpp_api | |
parent | 0c34fe20a101f3e9297b3ffab4e8b736a55a558f (diff) | |
download | minetest-91a9382c25328075d1a27593b22b0a75863951e1.tar.gz minetest-91a9382c25328075d1a27593b22b0a75863951e1.tar.bz2 minetest-91a9382c25328075d1a27593b22b0a75863951e1.zip |
Pass clang-format on various cpp/header files (#5559)
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r-- | src/script/cpp_api/s_mainmenu.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/script/cpp_api/s_mainmenu.cpp b/src/script/cpp_api/s_mainmenu.cpp index e9a7a13b9..1e9ba3a41 100644 --- a/src/script/cpp_api/s_mainmenu.cpp +++ b/src/script/cpp_api/s_mainmenu.cpp @@ -34,8 +34,7 @@ void ScriptApiMainMenu::setMainMenuData(MainMenuDataForScript *data) lua_pushnil(L); } lua_settable(L, gamedata_idx); - setboolfield(L, gamedata_idx, "reconnect_requested", - data->reconnect_requested); + setboolfield(L, gamedata_idx, "reconnect_requested", data->reconnect_requested); lua_pop(L, 1); } @@ -58,7 +57,7 @@ void ScriptApiMainMenu::handleMainMenuEvent(std::string text) // Call it lua_pushstring(L, text.c_str()); PCALL_RES(lua_pcall(L, 1, 0, error_handler)); - lua_pop(L, 1); // Pop error handler + lua_pop(L, 1); // Pop error handler } void ScriptApiMainMenu::handleMainMenuButtons(const StringMap &fields) @@ -90,6 +89,5 @@ void ScriptApiMainMenu::handleMainMenuButtons(const StringMap &fields) // Call it PCALL_RES(lua_pcall(L, 1, 0, error_handler)); - lua_pop(L, 1); // Pop error handler + lua_pop(L, 1); // Pop error handler } - |