Code review comment for lp:~uriboni/unity-2d/support-removeRows-in-models

Revision history for this message
Olivier Tilloy (osomon) wrote :

+ if (row < 0 || row >= rowCount(parent) || count <= 0) {

In rowCount(…), the 'parent' argument is unused, and it defaults to QModelIndex(), so you can safely call rowCount() without any argument.

« Back to merge proposal