Lua: Fix build on Windows for older Qt

Qt6.4 ends on Windows with an ambiguous overload for the
operator otherwise.
Amends d298244c10.

Change-Id: Ie6813cffb22925b71ee55219ade1c3234f6aed8f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Christian Stenger
2024-07-12 07:00:24 +02:00
parent 3aa1111560
commit 62d698c39c

View File

@@ -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");