Ivan Akulov
Ivan Akulov

Reputation: 4323

QObject::deleteLater() when pointer is zero

Is it safe calling QObject::deleteLater() when pointer equals 0? I googled it and searched in documentation, but I didn't find any helpful information.

Upvotes: 1

Views: 2684

Answers (1)

jalone
jalone

Reputation: 2073

You should not be able / should not do any call to a function of a 0 pointer. It should be treated as a delete operation but it's a function of the object itself, so no object no function.

Upvotes: 4

Related Questions