From 85a2c290f922f648e5e9f0e69c03116f2d0aeaa6 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 6 Apr 2025 20:23:55 +0530 Subject: Change build setup to install lua prefix correctly + static build libluv --- src/EventQueue.cpp | 3 +++ src/LuaRuntime.cpp | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/EventQueue.cpp b/src/EventQueue.cpp index eebda76..9fef368 100644 --- a/src/EventQueue.cpp +++ b/src/EventQueue.cpp @@ -18,6 +18,9 @@ void EventQueue::dispatch_event(BrowserEvent *event) { // TODO: Pattern filter event_handler.handler(event); } + + // TODO: to delete or not to delete + // delete event; }); } diff --git a/src/LuaRuntime.cpp b/src/LuaRuntime.cpp index 328cd89..d54bb37 100644 --- a/src/LuaRuntime.cpp +++ b/src/LuaRuntime.cpp @@ -271,8 +271,7 @@ int LuaRuntime::lua_tab_list(lua_State *state) { int LuaRuntime::lua_history_back(lua_State *state) { auto &runtime = LuaRuntime::instance(); - qsizetype history_index = - lua_isnoneornil(state, 1) ? 1 : lua_tointeger(state, 1); + qsizetype history_index = lua_isnoneornil(state, 1) ? 1 : lua_tointeger(state, 1); WebViewId tab_id = lua_isnoneornil(state, 2) ? 0 : lua_tointeger(state, 2); @@ -283,8 +282,7 @@ int LuaRuntime::lua_history_back(lua_State *state) { int LuaRuntime::lua_history_forward(lua_State *state) { auto &runtime = LuaRuntime::instance(); - qsizetype history_index = - lua_isnoneornil(state, 1) ? 1 : lua_tointeger(state, 1); + qsizetype history_index = lua_isnoneornil(state, 1) ? 1 : lua_tointeger(state, 1); WebViewId tab_id = lua_isnoneornil(state, 2) ? 0 : lua_tointeger(state, 2); -- cgit v1.3.1