File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ connection::connection() noexcept : slot_(nullptr)
26
26
{
27
27
}
28
28
29
- connection::connection (slot_base* slot)
30
- : slot_(slot)
29
+ connection::connection (slot_base& slot)
30
+ : slot_(& slot)
31
31
{
32
32
if (slot_)
33
33
slot_->add_destroy_notify_callback (this , ¬ify_slot_invalidated);
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ struct SIGC_API connection : public notifiable
48
48
*/
49
49
connection (const connection& c);
50
50
51
- /* * Constructs a connection object from a slot list iterator .
52
- * @param it The slot list iterator to take the slot from .
51
+ /* * Constructs a connection object from a slot object .
52
+ * @param sl The slot to operate on .
53
53
*/
54
- explicit connection (slot_base* slot);
54
+ explicit connection (slot_base& slot);
55
55
56
56
/* * Overrides this connection object copying another one.
57
57
* @param c The connection object to make a copy from.
Original file line number Diff line number Diff line change @@ -433,7 +433,7 @@ class signal_with_accumulator : public signal_base
433
433
{
434
434
auto iter = signal_base::connect (slot_);
435
435
auto & slot_base = *iter;
436
- return connection (& slot_base);
436
+ return connection (slot_base);
437
437
}
438
438
439
439
/* * Add a slot to the list of slots.
@@ -445,7 +445,7 @@ class signal_with_accumulator : public signal_base
445
445
{
446
446
auto iter = signal_base::connect (std::move (slot_));
447
447
auto & slot_base = *iter;
448
- return connection (& slot_base);
448
+ return connection (slot_base);
449
449
}
450
450
451
451
/* * Triggers the emission of the signal.
You can’t perform that action at this time.
0 commit comments