Skip to content
Permalink
Browse files
Merge pull request #8587 from lioncash/const-qual
DolphinQt/TASCheckBox: Mark GetValue() as const
  • Loading branch information
stenzek committed Jan 27, 2020
2 parents 15b9b6e + b493bdb commit 47239dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -13,7 +13,7 @@ TASCheckBox::TASCheckBox(const QString& text) : QCheckBox(text)
setTristate(true);
}

bool TASCheckBox::GetValue()
bool TASCheckBox::GetValue() const
{
if (checkState() == Qt::PartiallyChecked)
return Movie::GetCurrentFrame() % 2 == static_cast<u64>(m_trigger_on_odd);
@@ -14,7 +14,7 @@ class TASCheckBox : public QCheckBox
public:
explicit TASCheckBox(const QString& text);

bool GetValue();
bool GetValue() const;

protected:
void mousePressEvent(QMouseEvent* event) override;

0 comments on commit 47239dd

Please sign in to comment.