Lua: Remove unnecessary if

Change-Id: Id19de054990c4d8c2b4120a5927223638d5ed811
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-08-23 07:58:57 +02:00
parent 71e0f7e24d
commit a71fd8a770

View File

@@ -61,8 +61,7 @@ QRect sol_lua_get(sol::types<QRect>, lua_State *L, int index, sol::stack::record
if (table.size() == 2) if (table.size() == 2)
return QRect(table.get<QPoint>(1), table.get<QSize>(2)); return QRect(table.get<QPoint>(1), table.get<QSize>(2));
if (table.size() == 4) return QRect(table.get<int>(1), table.get<int>(2), table.get<int>(3), table.get<int>(4));
return QRect(table.get<int>(1), table.get<int>(2), table.get<int>(3), table.get<int>(4));
} }
int sol_lua_push(sol::types<QRect>, lua_State *L, const QRect &value) int sol_lua_push(sol::types<QRect>, lua_State *L, const QRect &value)