Skip to content

Commit 7902df0

Browse files
committed
trackable: Don't bother checking for null before using delete.
Because deleting null is allowed. Noticed by clang-tidy.
1 parent f7c2a73 commit 7902df0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sigc++/trackable.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@ trackable::remove_destroy_notify_callback(notifiable* data) const
8383
void
8484
trackable::notify_callbacks()
8585
{
86-
if (callback_list_)
87-
delete callback_list_; // This invokes all of the callbacks.
88-
86+
delete callback_list_; // This invokes all of the callbacks.
8987
callback_list_ = nullptr;
9088
}
9189

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy