Avoid warning about missing return value in wxCheckBox code
Handle unknown checkbox values as well, if only to silence the compiler.
This commit is contained in:
@@ -119,6 +119,9 @@ wxCheckBoxState wxCheckBox::DoGet3StateValue() const
|
|||||||
case Qt::PartiallyChecked:
|
case Qt::PartiallyChecked:
|
||||||
return wxCHK_UNDETERMINED;
|
return wxCHK_UNDETERMINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxFAIL_MSG( "unknown QCheckBox state" );
|
||||||
|
return wxCHK_UNDETERMINED;
|
||||||
}
|
}
|
||||||
|
|
||||||
QCheckBox *wxCheckBox::GetHandle() const
|
QCheckBox *wxCheckBox::GetHandle() const
|
||||||
|
Reference in New Issue
Block a user