mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02: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:
@ -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);
|
||||
|
Reference in New Issue
Block a user