summaryrefslogtreecommitdiff
path: root/sigc++/functors/slot.h
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-04-16 21:39:33 +0200
committerMurray Cumming <murrayc@murrayc.com>2016-04-16 21:42:44 +0200
commitb4bc590e63d59ca2616de6f28373a5888a81f593 (patch)
tree7f535f795f1279a8d35b74ce555a9d8c28019366 /sigc++/functors/slot.h
parentba9e84fa765e3bc7492f3cd12f8ebb463f2f7536 (diff)
downloadsigc++-b4bc590e63d59ca2616de6f28373a5888a81f593.tar.gz
Minor uses of auto.
Diffstat (limited to 'sigc++/functors/slot.h')
-rw-r--r--sigc++/functors/slot.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sigc++/functors/slot.h b/sigc++/functors/slot.h
index a66f376..83d5d03 100644
--- a/sigc++/functors/slot.h
+++ b/sigc++/functors/slot.h
@@ -67,7 +67,7 @@ private:
*/
static void destroy(notifiable* data)
{
- self* self_ = static_cast<self*>(data);
+ auto self_ = static_cast<self*>(data);
self_->call_ = nullptr;
self_->destroy_ = nullptr;
sigc::visit_each_trackable(slot_do_unbind(self_), self_->functor_);
@@ -107,8 +107,7 @@ struct slot_call
*/
static T_return call_it(slot_rep* rep, type_trait_take_t<T_arg>... a_)
{
- using typed_slot = typed_slot_rep<T_functor>;
- typed_slot* typed_rep = static_cast<typed_slot*>(rep);
+ auto typed_rep = static_cast<typed_slot_rep<T_functor>*>(rep);
return (typed_rep->functor_).template operator()<type_trait_take_t<T_arg>...>(a_...);
}