From f0bdfed9b4c2a7f16ba4dd81092d3fdc610840b1 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 22 Oct 2022 22:38:31 +0800 Subject: [PATCH] clean up code --- RedPandaIDE/widgets/ojproblemsetmodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RedPandaIDE/widgets/ojproblemsetmodel.cpp b/RedPandaIDE/widgets/ojproblemsetmodel.cpp index 2e4142ad..6e9a03b5 100644 --- a/RedPandaIDE/widgets/ojproblemsetmodel.cpp +++ b/RedPandaIDE/widgets/ojproblemsetmodel.cpp @@ -259,7 +259,7 @@ Qt::DropActions OJProblemSetModel::supportedDropActions() const return Qt::DropAction::MoveAction; } -bool OJProblemSetModel::moveRows(const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) +bool OJProblemSetModel::moveRows(const QModelIndex &/*sourceParent*/, int sourceRow, int count, const QModelIndex &/*destinationParent*/, int destinationChild) { if (sourceRow < 0 || sourceRow + count - 1 >= mProblemSet.problems.count() @@ -507,7 +507,7 @@ Qt::DropActions OJProblemModel::supportedDropActions() const return Qt::DropAction::MoveAction; } -bool OJProblemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) +bool OJProblemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int /* column */, const QModelIndex &parent) { mMoveTargetRow=row; if (mMoveTargetRow==-1) @@ -515,12 +515,12 @@ bool OJProblemModel::dropMimeData(const QMimeData *data, Qt::DropAction action, return QAbstractTableModel::dropMimeData(data,action,row,0,parent); } -bool OJProblemModel::insertRows(int row, int count, const QModelIndex &parent) +bool OJProblemModel::insertRows(int /* row */, int /*count*/, const QModelIndex &/*parent*/) { return true; } -bool OJProblemModel::removeRows(int row, int count, const QModelIndex &parent) +bool OJProblemModel::removeRows(int row, int count, const QModelIndex &/*parent*/) { int sourceRow = row; int destinationChild = mMoveTargetRow;