Skip to content

Commit cacfd54

Browse files
committed
slot_base: Destructor: No need for null check before delete.
Found by clang-tidy.
1 parent 69bb8cf commit cacfd54

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sigc++/functors/slot_base.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ slot_base::slot_base(slot_base&& src) : rep_(nullptr), blocked_(src.blocked_)
137137

138138
slot_base::~slot_base()
139139
{
140-
if (rep_)
141-
delete rep_;
140+
delete rep_;
142141
}
143142

144143
slot_base::operator bool() const noexcept

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