Skip to content

Commit

Permalink
QItemSelection: Use public constructor from baseclass
Browse files Browse the repository at this point in the history
Addresses code review comment.

Change-Id: I51c1d790217346358e15ed5ca750ea397a765406
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
vohi committed Nov 13, 2020
1 parent 9662ff6 commit 654156f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/itemmodels/qitemselectionmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ Q_DECLARE_OPERATORS_FOR_FLAGS(QItemSelectionModel::SelectionFlags)
class QItemSelection : public QList<QItemSelectionRange>
{
public:
QItemSelection() noexcept : QList<QItemSelectionRange>() {}
using QList<QItemSelectionRange>::QList;
Q_CORE_EXPORT QItemSelection(const QModelIndex &topLeft, const QModelIndex &bottomRight);

// reusing QList::swap() here is OK!
Expand Down

0 comments on commit 654156f

Please sign in to comment.