[TD] remove some more superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-20 02:53:48 +02:00
parent 8304a0942e
commit 31bc9f3913
31 changed files with 84 additions and 128 deletions

View File

@@ -144,9 +144,8 @@ TaskProjGroup::~TaskProjGroup()
void TaskProjGroup::saveGroupState()
{
// Base::Console().Message("TPG::saveGroupState()\n");
if (multiView == nullptr) {
if (!multiView)
return;
}
m_saveSource = multiView->Source.getValues();
m_saveProjType = multiView->ProjectionType.getValueAsString();
@@ -170,9 +169,8 @@ void TaskProjGroup::saveGroupState()
void TaskProjGroup::restoreGroupState()
{
Base::Console().Message("TPG::restoreGroupState()\n");
if (multiView == nullptr) {
if (!multiView)
return;
}
multiView->ProjectionType.setValue(m_saveProjType.c_str());
multiView->ScaleType.setValue(m_saveScaleType.c_str());
@@ -460,9 +458,8 @@ const char * TaskProjGroup::viewChkIndexToCStr(int index)
}
void TaskProjGroup::setupViewCheckboxes(bool addConnections)
{
if ( multiView == nullptr ) {
if (!multiView)
return;
}
// There must be a better way to construct this list...
QCheckBox * viewCheckboxes[] = { ui->chkView0,