Fem: Fix several coverity issues:
* make SelectionChangeModes an enum class * CID 350596: Uninitialized scalar field * CID 350572: Uncaught exception * CID 350647: Uncaught exception
This commit is contained in:
@@ -266,8 +266,10 @@ void TaskFemConstraintSpring::changeEvent(QEvent *)
|
||||
|
||||
void TaskFemConstraintSpring::clearButtons(const SelectionChangeModes notThis)
|
||||
{
|
||||
if (notThis != refAdd) ui->btnAdd->setChecked(false);
|
||||
if (notThis != refRemove) ui->btnRemove->setChecked(false);
|
||||
if (notThis != SelectionChangeModes::refAdd)
|
||||
ui->btnAdd->setChecked(false);
|
||||
if (notThis != SelectionChangeModes::refRemove)
|
||||
ui->btnRemove->setChecked(false);
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user