Mod: remove some unnecessary nullptr checks

This commit is contained in:
Uwe
2022-07-18 12:58:12 +02:00
parent a5eb40a9a6
commit 88a06f8f10
17 changed files with 37 additions and 37 deletions

View File

@@ -92,7 +92,7 @@ ViewProviderRobotObject::~ViewProviderRobotObject()
void ViewProviderRobotObject::setDragger()
{
assert(pcDragger==nullptr);
assert(!pcDragger);
pcDragger = new SoJackDragger();
pcDragger->addMotionCallback(sDraggerMotionCallback,this);
pcTcpRoot->addChild(pcDragger);