mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
DolphinQt/TASCheckBox: Mark GetValue() as const
This doesn't actually modify the checkbox's state, so this can be marked as a const-qualified member function.
This commit is contained in:
parent
42c03c4dad
commit
b493bdb912
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue