From 4bb62380fe50c7d8fa7fde4554b86276875e3e5c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 30 Jun 2021 19:40:42 +0200 Subject: [PATCH] movieplayer.cpp: avoid possible unused parameter warning --- src/gui/movieplayer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 583dcd499..418d86fb1 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1026,12 +1026,13 @@ bool CMoviePlayerGui::luaGetUrl(const std::string &script, const std::string &fi std::string result_code = ""; std::string result_string = ""; + std::string lua_script = script; std::vector args; args.push_back(file); #ifdef ENABLE_LUA CLuaInstance *lua = new CLuaInstance(); - lua->runScript(script.c_str(), &args, &result_code, &result_string); + lua->runScript(lua_script.c_str(), &args, &result_code, &result_string); delete lua; #endif if ((result_code != "0") || result_string.empty()) {