File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ struct typed_slot_rep : public slot_rep
85
85
/* * Detaches the stored functor from the other referred trackables and destroys it.
86
86
* This does not destroy the base slot_rep object.
87
87
*/
88
- static void destroy (notifiable * data)
88
+ static void destroy (slot_rep * data)
89
89
{
90
90
auto self_ = static_cast <self*>(data);
91
91
self_->call_ = nullptr ;
Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ struct SIGC_API slot_rep : public trackable
68
68
69
69
using hook_dup = slot_rep* (*)(slot_rep*);
70
70
71
- inline slot_rep (hook call__, notifiable::func_destroy_notify destroy__, hook_dup dup__) noexcept
71
+ using func_slot_rep_destroy_notify = void (*)(slot_rep* data);
72
+
73
+ inline slot_rep (hook call__, func_slot_rep_destroy_notify destroy__, hook_dup dup__) noexcept
72
74
: call_(call__),
73
75
cleanup_(nullptr ),
74
76
parent_(nullptr ),
@@ -142,17 +144,17 @@ struct SIGC_API slot_rep : public trackable
142
144
hook call_;
143
145
144
146
/* * Callback of parent_. */
145
- func_destroy_notify cleanup_;
147
+ notifiable:: func_destroy_notify cleanup_;
146
148
147
149
/* * Parent object whose callback cleanup_ is executed on notification. */
148
150
notifiable* parent_;
149
151
150
152
protected:
151
153
// / Callback that detaches the slot_rep object from referred trackables and destroys it.
152
- /* This could be a replaced by a virtual dtor. However since this struct is
153
- * crucual for the efficiency of the whole library we want to avoid this.
154
+ /* This could be a replaced by a virtual dtor. However, since this struct is
155
+ * crucial for the efficiency of the whole library, we want to avoid this.
154
156
*/
155
- func_destroy_notify destroy_;
157
+ func_slot_rep_destroy_notify destroy_;
156
158
157
159
private:
158
160
/* * Callback that makes a deep copy of the slot_rep object.
You can’t perform that action at this time.
0 commit comments