diff options
| author | hjk <[email protected]> | 2024-07-26 14:49:40 +0200 |
|---|---|---|
| committer | hjk <[email protected]> | 2024-07-26 13:25:14 +0000 |
| commit | fa0bfa8660cbfa24fc88b3b748d34b34aaeef3c8 (patch) | |
| tree | 1ac514e73e07152df2f1f72cf981856863b7edc2 /src/plugins/lua/luapluginspec.cpp | |
| parent | e429a11fd7a24fa6854935239916e6c771bdd01c (diff) | |
Lua: Dissolve LuaEngine class
It was mostly used as namespace.
Change-Id: Ice6cdd1581d7dd70b09f6d82891b874a206a1ca0
Reviewed-by: Marcus Tillmanns <[email protected]>
Diffstat (limited to 'src/plugins/lua/luapluginspec.cpp')
| -rw-r--r-- | src/plugins/lua/luapluginspec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/lua/luapluginspec.cpp b/src/plugins/lua/luapluginspec.cpp index 7a2d219ff13..125f9295ad4 100644 --- a/src/plugins/lua/luapluginspec.cpp +++ b/src/plugins/lua/luapluginspec.cpp @@ -54,7 +54,7 @@ expected_str<LuaPluginSpec *> LuaPluginSpec::create(const FilePath &filePath, so if (!pluginTable.get_or<sol::function>("setup", {})) return make_unexpected(QString("Plugin info table did not contain a setup function")); - QJsonValue v = LuaEngine::toJson(pluginTable); + QJsonValue v = toJson(pluginTable); if (luaPluginSpecLog().isDebugEnabled()) { qCDebug(luaPluginSpecLog).noquote() << "Plugin info table:" << QJsonDocument(v.toObject()).toJson(QJsonDocument::Indented); @@ -120,8 +120,7 @@ bool LuaPluginSpec::initializePlugin() std::unique_ptr<sol::state> activeLuaState = std::make_unique<sol::state>(); - expected_str<sol::protected_function> setupResult - = LuaEngine::instance().prepareSetup(*activeLuaState, *this); + expected_str<sol::protected_function> setupResult = prepareSetup(*activeLuaState, *this); if (!setupResult) { setError(Lua::Tr::tr("Cannot prepare extension setup: %1").arg(setupResult.error())); |
