Skip to content

Commit b71b38c

Browse files
committed
slot_rep::dup(): Remove an unnecessary static_cast.
Found by CLion's code inspection.
1 parent d11e685 commit b71b38c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sigc++/functors/slot_base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ struct SIGC_API slot_rep : public trackable
100100
*/
101101
inline slot_rep* dup() const
102102
{
103-
return static_cast<slot_rep*>((*dup_)(const_cast<slot_rep*>(this)));
103+
return (*dup_)(const_cast<slot_rep*>(this));
104104
}
105105

106106
/** Set the parent with a callback.

0 commit comments

Comments
 (0)