This question already has an answer here:
Consider this piece of code:
MyObject* ptr = getObjectInstanceOrNullptr(); if (ptr != nullptr && ptr->isConditionTrue()) //Do something
Is it safe?
Aucun commentaire:
Enregistrer un commentaire