Fix legacy Qt build

This commit is contained in:
Syping 2021-05-01 15:08:26 +02:00
parent 46effd4ada
commit eacb94de41

View file

@ -373,7 +373,11 @@ QVariant LuaEngine::getVariant(lua_State *L_p, int index)
else if (lua_isnoneornil(L_p, index)) {
return QVariant();
}
#if QT_VERSION >= 0x050F00
QTextStream(stderr) << "Warning: Didn't catch lua_isnoneornil before empty QVariant got returned" << Qt::endl;
#else
QTextStream(stderr) << "Warning: Didn't catch lua_isnoneornil before empty QVariant got returned" << endl;
#endif
return QVariant();
}