diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-07-28 10:35:53 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-07-28 10:43:29 +0200 |
commit | b71b38ca8cac858f3a0c1358f489fd1ecba41fc4 (patch) | |
tree | 8d34ad6d815c01da16b8c10de074cf1831ca30e7 | |
parent | d11e685807c798b6194c620208988334e0bdf4e3 (diff) | |
download | sigc++-b71b38ca8cac858f3a0c1358f489fd1ecba41fc4.tar.gz |
slot_rep::dup(): Remove an unnecessary static_cast.
Found by CLion's code inspection.
-rw-r--r-- | sigc++/functors/slot_base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sigc++/functors/slot_base.h b/sigc++/functors/slot_base.h index 02c3d50..ba7baa8 100644 --- a/sigc++/functors/slot_base.h +++ b/sigc++/functors/slot_base.h @@ -100,7 +100,7 @@ public: */ inline slot_rep* dup() const { - return static_cast<slot_rep*>((*dup_)(const_cast<slot_rep*>(this))); + return (*dup_)(const_cast<slot_rep*>(this)); } /** Set the parent with a callback. |