[libsigcplusplus] Use temp_slot_list as const.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus] Use temp_slot_list as const.
- Date: Thu, 21 Apr 2016 18:07:07 +0000 (UTC)
commit 764c17e28600eb57bb7271116f9d5f98858959b5
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 21 19:38:39 2016 +0200
Use temp_slot_list as const.
sigc++/signal.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sigc++/signal.h b/sigc++/signal.h
index a0a45bf..9f2af2a 100644
--- a/sigc++/signal.h
+++ b/sigc++/signal.h
@@ -265,7 +265,7 @@ struct signal_emit
return accumulator(slot_iterator_buf_type(), slot_iterator_buf_type());
signal_exec exec(impl);
- temp_slot_list slots(impl->slots_);
+ const temp_slot_list slots(impl->slots_);
self_type self(a...);
return accumulator(
@@ -317,7 +317,7 @@ public:
// Use this scope to make sure that "slots" is destroyed before "exec" is destroyed.
// This avoids a leak on MSVC++ - see http://bugzilla.gnome.org/show_bug.cgi?id=306249
{
- temp_slot_list slots(impl->slots_);
+ const temp_slot_list slots(impl->slots_);
auto it = slots.begin();
for (; it != slots.end(); ++it)
{
@@ -368,7 +368,7 @@ public:
if (!impl || impl->slots_.empty())
return;
signal_exec exec(impl);
- temp_slot_list slots(impl->slots_);
+ const temp_slot_list slots(impl->slots_);
for (const auto& slot : slots)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]