Skip to content

Commit 3c6bfa0

Browse files
committed
Fix warnings about unused parameters
Move these implementations out of the headers. There is no dominant benefit from inlining these functions.
1 parent b4a230e commit 3c6bfa0

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

src/problemWidget.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,22 @@ class QHBoxLayout;
4444
class QVBoxLayout;
4545
QT_END_NAMESPACE
4646

47+
// ### Problem ###
48+
4749
Problem::Problem()
4850
{
4951
selection = 0;
5052
}
5153

5254
Problem::~Problem() = default;
5355

56+
void Problem::setToSolutionType(Problem::SolutionType /*type*/)
57+
{
58+
// nothing
59+
}
60+
61+
// ### ProblemWidget ###
62+
5463
ProblemWidget::ProblemWidget(QWidget* parent) : QTableWidget(parent)
5564
{
5665
verticalHeader()->setVisible(false);

src/problemWidget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Problem
6060
virtual QString getSolutionDescription(int i) = 0;
6161
virtual void applySolution(int i) = 0;
6262

63-
virtual void setToSolutionType(SolutionType type) {}
63+
virtual void setToSolutionType(SolutionType type);
6464

6565
inline const QString& getDescription() const {return description;}
6666
inline int getSelection() const {return selection;}

src/scoringDialog.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,11 @@ void ScoringCalculationPage::handicapDataChanged()
690690
handicapList->sortItems();
691691
}
692692

693+
void ScoringCalculationPage::handicapDataChanged(int /*index*/)
694+
{
695+
handicapDataChanged();
696+
}
697+
693698
void ScoringCalculationPage::customPointAddClicked()
694699
{
695700
Ruleset* ruleset = getCurrentRuleset();

src/scoringDialog.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public slots:
168168
void handicapCheckToggled(bool checked);
169169
void currentHandicapChanged(QListWidgetItem* current, QListWidgetItem* previous);
170170
void handicapDataChanged();
171-
inline void handicapDataChanged(int index) {handicapDataChanged();}
171+
void handicapDataChanged(int index);
172172
void handicapAddClicked();
173173
void handicapRemoveClicked();
174174

0 commit comments

Comments
 (0)