@@ -94,10 +94,10 @@ slot_base::slot_base(const slot_base& src) : rep_(nullptr), blocked_(src.blocked
94
94
{
95
95
// Check call_ so we can ignore invalidated slots.
96
96
// Otherwise, destroyed bound reference parameters (whose destruction caused the slot's
97
- // invalidation) may be used during dup ().
98
- // Note: I'd prefer to check somewhere during dup (). murrayc.
97
+ // invalidation) may be used during clone ().
98
+ // Note: I'd prefer to check somewhere during clone (). murrayc.
99
99
if (src.rep_ ->call_ )
100
- rep_ = src.rep_ ->dup ();
100
+ rep_ = src.rep_ ->clone ();
101
101
else
102
102
{
103
103
*this = slot_base (); // Return the default invalid slot.
@@ -116,9 +116,9 @@ slot_base::slot_base(slot_base&& src) : rep_(nullptr), blocked_(src.blocked_)
116
116
117
117
// Check call_ so we can ignore invalidated slots.
118
118
// Otherwise, destroyed bound reference parameters (whose destruction
119
- // caused the slot's invalidation) may be used during dup ().
119
+ // caused the slot's invalidation) may be used during clone ().
120
120
if (src.rep_ ->call_ )
121
- rep_ = src.rep_ ->dup ();
121
+ rep_ = src.rep_ ->clone ();
122
122
else
123
123
blocked_ = false ; // Return the default invalid slot.
124
124
}
@@ -184,7 +184,7 @@ slot_base::operator=(const slot_base& src)
184
184
return *this ;
185
185
}
186
186
187
- auto new_rep_ = src.rep_ ->dup ();
187
+ auto new_rep_ = src.rep_ ->clone ();
188
188
189
189
if (rep_) // Silently exchange the slot_rep.
190
190
{
@@ -219,7 +219,7 @@ slot_base::operator=(slot_base&& src)
219
219
{
220
220
// src is connected to a parent, e.g. a sigc::signal.
221
221
// Copy, don't move! See https://bugzilla.gnome.org/show_bug.cgi?id=756484
222
- new_rep_ = src.rep_ ->dup ();
222
+ new_rep_ = src.rep_ ->clone ();
223
223
}
224
224
else
225
225
{
0 commit comments