forked from qt-creator/qt-creator
Lua: Remove unnecessary if
Change-Id: Id19de054990c4d8c2b4120a5927223638d5ed811 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -61,8 +61,7 @@ QRect sol_lua_get(sol::types<QRect>, lua_State *L, int index, sol::stack::record
|
||||
if (table.size() == 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)
|
||||
|
Reference in New Issue
Block a user