[TD] remove more superfluous nullptr checks
This commit is contained in:
@@ -876,7 +876,7 @@ void CmdTechDrawBalloon::activated(int iMsg)
|
||||
std::vector<Gui::SelectionObject> selection = getSelection().getSelectionEx();
|
||||
|
||||
auto objFeat(dynamic_cast<TechDraw::DrawViewPart*>(selection[0].getObject()));
|
||||
if (objFeat == nullptr) {
|
||||
if (!objFeat) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1266,7 +1266,7 @@ void CmdTechDrawArchView::activated(int iMsg)
|
||||
return;
|
||||
}
|
||||
|
||||
if (archObject == nullptr) {
|
||||
if (!archObject) {
|
||||
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
|
||||
QObject::tr("No Arch Sections in selection."));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user