+ 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
+ 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.