diff --git a/src/controllers/plugins/PluginController.cpp b/src/controllers/plugins/PluginController.cpp index f4dacac53..7cea33da6 100644 --- a/src/controllers/plugins/PluginController.cpp +++ b/src/controllers/plugins/PluginController.cpp @@ -76,7 +76,8 @@ bool PluginController::tryLoadFromDir(const QDir &pluginDir) void PluginController::openLibrariesFor(lua_State *L, PluginMeta meta) { // copied from linit.c - static const std::array loadedlibs = { + // NOLINTNEXTLINE + static const std::vector loadedlibs = { luaL_Reg{LUA_GNAME, luaopen_base}, luaL_Reg{LUA_LOADLIBNAME, luaopen_package}, luaL_Reg{LUA_COLIBNAME, luaopen_coroutine},