aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/luaengine.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2024-07-12 07:00:24 +0200
committerChristian Stenger <christian.stenger@qt.io>2024-07-12 06:16:27 +0000
commit62d698c39c1c2dd514989694d6e6facf0b17825d (patch)
treebc6580345da0eccb126b09332f03afae5f824bf0 /src/plugins/lua/luaengine.cpp
parent3aa1111560b2bb5602109007c3dd48e9b468417a (diff)
Lua: Fix build on Windows for older Qt
Qt6.4 ends on Windows with an ambiguous overload for the operator otherwise. Amends d298244c10dba9d831935369fced979f7cd3f9d0. Change-Id: Ie6813cffb22925b71ee55219ade1c3234f6aed8f Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Diffstat (limited to 'src/plugins/lua/luaengine.cpp')
-rw-r--r--src/plugins/lua/luaengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/luaengine.cpp b/src/plugins/lua/luaengine.cpp
index c4cd9d50b75..0c0501ab2ef 100644
--- a/src/plugins/lua/luaengine.cpp
+++ b/src/plugins/lua/luaengine.cpp
@@ -279,8 +279,8 @@ expected_str<sol::protected_function> LuaEngine::prepareSetup(
qCDebug(LOGLSPLUA) << "Script returned table with keys:";
for (const auto &pair : *pluginTable) {
- qCDebug(LOGLSPLUA) << "Key:" << pair.first.as<std::string>();
- qCDebug(LOGLSPLUA) << "Value:" << pair.second.as<std::string>();
+ qCDebug(LOGLSPLUA) << "Key:" << QByteArrayView(pair.first.as<std::string>());
+ qCDebug(LOGLSPLUA) << "Value:" << QByteArrayView(pair.second.as<std::string>());
}
auto hookTable = pluginTable->get<sol::optional<sol::table>>("hooks");