aboutsummaryrefslogtreecommitdiff
path: root/src/LuaRuntime.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/LuaRuntime.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/LuaRuntime.cpp b/src/LuaRuntime.cpp
index 37845d3..6867b61 100644
--- a/src/LuaRuntime.cpp
+++ b/src/LuaRuntime.cpp
@@ -15,7 +15,9 @@ LuaRuntime::LuaRuntime() {
lua_setglobal(state, "web");
}
-void LuaRuntime::evaluate(const char *code) { luaL_dostring(state, code); }
+void LuaRuntime::evaluate(QString code) {
+ luaL_dostring(state, code.toStdString().c_str());
+}
int LuaRuntime::lua_onUrlOpen(lua_State *state) {
const char *url = luaL_optstring(state, 1, "");