From 4326c6d1b3c9293289b979f51933770eefb47f93 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Tue, 5 Nov 2013 11:56:13 -0800 Subject: [PATCH] tls_wrap: move members to initialization list They didn't need to be defined in the body of the constructor. --- src/tls_wrap.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 287c90cce78..e98ae60bf0a 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -65,6 +65,8 @@ TLSCallbacks::TLSCallbacks(Environment* env, : SSLWrap(env, Unwrap(sc), kind), StreamWrapCallbacks(old), AsyncWrap(env, env->tls_wrap_constructor_function()->NewInstance()), + sc_(Unwrap(sc)), + sc_handle_(env->isolate(), sc), enc_in_(NULL), enc_out_(NULL), clear_in_(NULL), @@ -73,11 +75,6 @@ TLSCallbacks::TLSCallbacks(Environment* env, started_(false), established_(false), shutdown_(false) { - - // Persist SecureContext - sc_ = Unwrap(sc); - sc_handle_.Reset(node_isolate, sc); - node::Wrap(object(), this); // Initialize queue for clearIn writes