[TD] Gui: remove some superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-19 02:49:46 +02:00
parent 003757176c
commit 2e5e4dced8
38 changed files with 154 additions and 160 deletions

View File

@@ -225,7 +225,7 @@ void TaskWeldingSymbol::setUiEdit()
ui->leTailText->setText(QString::fromUtf8(m_weldFeat->TailText.getValue()));
getTileFeats();
if (m_arrowFeat != nullptr) {
if (m_arrowFeat) {
QString qTemp = QString::fromUtf8(m_arrowFeat->LeftText.getValue());
ui->leArrowTextL->setText(qTemp);
qTemp = QString::fromUtf8(m_arrowFeat->RightText.getValue());
@@ -247,7 +247,7 @@ void TaskWeldingSymbol::setUiEdit()
}
}
if (m_otherFeat != nullptr) {
if (m_otherFeat) {
QString qTemp = QString::fromUtf8(m_otherFeat->LeftText.getValue());
ui->leOtherTextL->setText(qTemp);
qTemp = QString::fromUtf8(m_otherFeat->RightText.getValue());