Skip to content

Commit 831dfc8

Browse files
committed
slot_rep: Rename notify() for clarity.
1 parent c1c45be commit 831dfc8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

sigc++/functors/slot.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ struct visitor<slot<T_return, T_arg...>>
267267
const slot<T_return, T_arg...>& target)
268268
{
269269
if (target.rep_ && target.rep_->parent_ == nullptr)
270-
target.rep_->set_parent(action.action_.rep_, &internal::slot_rep::notify);
270+
target.rep_->set_parent(action.action_.rep_, &internal::slot_rep::notify_slot_rep_invalidated);
271271
}
272272

273273
static void do_visit_each(

sigc++/functors/slot_base.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ slot_rep::disconnect()
7777

7878
// static
7979
void
80-
slot_rep::notify(notifiable* data)
80+
slot_rep::notify_slot_rep_invalidated(notifiable* data)
8181
{
8282
auto self_ = static_cast<slot_rep*>(data);
8383

sigc++/functors/slot_base.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,9 @@ struct SIGC_API slot_rep : public trackable
131131
* referred object dying.
132132
* @param data The slot_rep object that is becoming invalid (@p this).
133133
*/
134-
static void notify(notifiable* data);
134+
static void notify_slot_rep_invalidated(notifiable* data);
135135

136+
public:
136137
/// Callback that invokes the contained functor.
137138
/* This can't be a virtual function since number of arguments
138139
* must be flexible. We use function pointers to slot_call::call_it()
@@ -179,7 +180,7 @@ struct SIGC_API slot_do_bind
179180
*/
180181
inline void operator()(const trackable& t) const
181182
{
182-
t.add_destroy_notify_callback(rep_, &slot_rep::notify);
183+
t.add_destroy_notify_callback(rep_, &slot_rep::notify_slot_rep_invalidated);
183184
}
184185
};
185186

0 commit comments

Comments
 (0)