[Gui] remove superfluous nullptr checks
This commit is contained in:
@@ -117,7 +117,7 @@ SoFCSelection::~SoFCSelection()
|
||||
{
|
||||
// If we're being deleted and we're the current highlight,
|
||||
// NULL out that variable
|
||||
if (currenthighlight != nullptr &&
|
||||
if (currenthighlight &&
|
||||
(!currenthighlight->getTail()->isOfType(SoFCSelection::getClassTypeId()))) {
|
||||
currenthighlight->unref();
|
||||
currenthighlight = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user