Skip to content

Commit 1717668

Browse files
committed
copy operations: Name all parameters src.
To make it more obvious that these are copy operations.
1 parent ff08099 commit 1717668

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

sigc++/connection.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ connection::connection(const connection& c) : slot_(c.slot_)
4242
}
4343

4444
connection&
45-
connection::operator=(const connection& c)
45+
connection::operator=(const connection& src)
4646
{
47-
set_slot(c.slot_);
47+
set_slot(src.slot_);
4848
return *this;
4949
}
5050

sigc++/connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct SIGC_API connection : public notifiable
5656
/** Overrides this connection object copying another one.
5757
* @param c The connection object to make a copy from.
5858
*/
59-
connection& operator=(const connection& c);
59+
connection& operator=(const connection& src);
6060

6161
~connection();
6262

sigc++/functors/slot.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ struct typed_slot_rep : public slot_rep
6363
sigc::visit_each_trackable(slot_do_bind(this), *functor_);
6464
}
6565

66-
inline typed_slot_rep(const typed_slot_rep& cl)
67-
: slot_rep(cl.call_, &destroy, &dup), functor_(std::make_unique<adaptor_type>(*cl.functor_))
66+
inline typed_slot_rep(const typed_slot_rep& src)
67+
: slot_rep(src.call_, &destroy, &dup), functor_(std::make_unique<adaptor_type>(*src.functor_))
6868
{
6969
sigc::visit_each_trackable(slot_do_bind(this), *functor_);
7070
}

sigc++/signal.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ struct slot_iterator_buf
105105
return tmp;
106106
}
107107

108-
bool operator==(const slot_iterator_buf& other) const
108+
bool operator==(const slot_iterator_buf& src) const
109109
{
110-
return (!c_ || (i_ == other.i_));
110+
return (!c_ || (i_ == src.i_));
111111
} /* If '!c_' the iterators are empty.
112112
* Unfortunately, empty stl iterators are not equal.
113113
* We are forcing equality so that 'first==last'
114114
* in the accumulator's emit function yields true. */
115115

116-
bool operator!=(const slot_iterator_buf& other) const { return (c_ && (i_ != other.i_)); }
116+
bool operator!=(const slot_iterator_buf& src) const { return (c_ && (i_ != src.i_)); }
117117

118118
private:
119119
iterator_type i_;
@@ -181,9 +181,9 @@ struct slot_iterator_buf<T_emitter, void>
181181
return tmp;
182182
}
183183

184-
bool operator==(const slot_iterator_buf& other) const { return i_ == other.i_; }
184+
bool operator==(const slot_iterator_buf& src) const { return i_ == src.i_; }
185185

186-
bool operator!=(const slot_iterator_buf& other) const { return i_ != other.i_; }
186+
bool operator!=(const slot_iterator_buf& src) const { return i_ != src.i_; }
187187

188188
private:
189189
iterator_type i_;

0 commit comments

Comments
 (0)