[libsigcplusplus] Use of auto instead of mentioning iterator types.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] Use of auto instead of mentioning iterator types.
- Date: Fri, 1 Apr 2016 16:51:42 +0000 (UTC)
commit de9bb35ffc4a7f466403f5411481c29c32d09cea
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Apr 1 18:21:48 2016 +0200
Use of auto instead of mentioning iterator types.
sigc++/signal.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sigc++/signal.h b/sigc++/signal.h
index f1b2945..07574e7 100644
--- a/sigc++/signal.h
+++ b/sigc++/signal.h
@@ -678,7 +678,7 @@ struct signal_emit<T_return, void, T_arg...>
// This avoids a leak on MSVC++ - see http://bugzilla.gnome.org/show_bug.cgi?id=306249
{
temp_slot_list slots(impl->slots_);
- iterator_type it = slots.begin();
+ auto it = slots.begin();
for (; it != slots.end(); ++it)
{
if (!it->empty() && !it->blocked())
@@ -798,7 +798,7 @@ struct signal_emit<void, void, T_arg...>
using reverse_iterator_type = std::reverse_iterator<signal_impl::iterator_type>;
- for (reverse_iterator_type it = reverse_iterator_type(slots.end());
+ for (auto it = reverse_iterator_type(slots.end());
it != reverse_iterator_type(slots.begin()); ++it)
{
if (it->empty() || it->blocked())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]