Skip to content

Commit a422dce

Browse files
committed
connection: Rename notify() for clarity.
1 parent 672f831 commit a422dce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sigc++/connection.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ connection::connection(slot_base* slot)
3030
: slot_(slot)
3131
{
3232
if (slot_)
33-
slot_->add_destroy_notify_callback(this, &notify);
33+
slot_->add_destroy_notify_callback(this, &notify_slot_invalidated);
3434
}
3535

3636

3737
connection::connection(const connection& c) : slot_(c.slot_)
3838
{
3939
// Let the connection forget about the signal handler when the handler object dies:
4040
if (slot_)
41-
slot_->add_destroy_notify_callback(this, &notify);
41+
slot_->add_destroy_notify_callback(this, &notify_slot_invalidated);
4242
}
4343

4444
connection&
@@ -105,11 +105,11 @@ connection::set_slot(slot_base* sl)
105105
slot_ = sl;
106106

107107
if (slot_)
108-
slot_->add_destroy_notify_callback(this, &notify);
108+
slot_->add_destroy_notify_callback(this, &notify_slot_invalidated);
109109
}
110110

111111
void
112-
connection::notify(notifiable* data)
112+
connection::notify_slot_invalidated(notifiable* data)
113113
{
114114
auto self = static_cast<connection*>(data);
115115
self->slot_ = nullptr;

sigc++/connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct SIGC_API connection : public notifiable
101101
/** Callback that is executed when the referred slot is destroyed.
102102
* @param data The connection object notified (@p this).
103103
*/
104-
static void notify(notifiable* data);
104+
static void notify_slot_invalidated(notifiable* data);
105105

106106
/* Referred slot. Set to zero from notify().
107107
* A value of zero indicates an "empty" connection.

0 commit comments

Comments
 (0)