[libsigcplusplus] signal_impl::insert(): Rename a variable for clarity.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] signal_impl::insert(): Rename a variable for clarity.
- Date: Thu, 21 Apr 2016 10:21:41 +0000 (UTC)
commit e1a26d3d485bd8215f13956bf8236f37e7a3264c
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 21 12:19:59 2016 +0200
signal_impl::insert(): Rename a variable for clarity.
sigc++/signal_base.cc | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/sigc++/signal_base.cc b/sigc++/signal_base.cc
index cde3d99..898bc70 100644
--- a/sigc++/signal_base.cc
+++ b/sigc++/signal_base.cc
@@ -142,19 +142,19 @@ signal_impl::erase(iterator_type i)
signal_impl::iterator_type
signal_impl::insert(signal_impl::iterator_type i, const slot_base& slot_)
{
- auto temp = slots_.insert(i, slot_);
- auto si = new self_and_iter(this, temp);
- temp->set_parent(si, ¬ify);
- return temp;
+ auto iter = slots_.insert(i, slot_);
+ auto si = new self_and_iter(this, iter);
+ iter->set_parent(si, ¬ify);
+ return iter;
}
signal_impl::iterator_type
signal_impl::insert(signal_impl::iterator_type i, slot_base&& slot_)
{
- auto temp = slots_.insert(i, std::move(slot_));
- auto si = new self_and_iter(this, temp);
- temp->set_parent(si, ¬ify);
- return temp;
+ auto iter = slots_.insert(i, std::move(slot_));
+ auto si = new self_and_iter(this, iter);
+ iter->set_parent(si, ¬ify);
+ return iter;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]