diff --git a/src/luaenginecore/luaengine/LuaEngine.cpp b/src/luaenginecore/luaengine/LuaEngine.cpp index a27a4e7..7674243 100644 --- a/src/luaenginecore/luaengine/LuaEngine.cpp +++ b/src/luaenginecore/luaengine/LuaEngine.cpp @@ -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(); }