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)