From d53bc8925b5884d16da3738d11885dcf48ea48e4 Mon Sep 17 00:00:00 2001 From: yang-g Date: Thu, 9 Jul 2015 12:56:29 -0700 Subject: Add missing pieces --- src/cpp/common/secure_create_auth_context.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cpp') diff --git a/src/cpp/common/secure_create_auth_context.cc b/src/cpp/common/secure_create_auth_context.cc index 21994945f8..d81f4bbc4a 100644 --- a/src/cpp/common/secure_create_auth_context.cc +++ b/src/cpp/common/secure_create_auth_context.cc @@ -43,9 +43,8 @@ std::shared_ptr CreateAuthContext(grpc_call* call) { if (call == nullptr) { return std::shared_ptr(); } - grpc_auth_context* context = - const_cast(grpc_call_auth_context(call)); - return std::shared_ptr(new SecureAuthContext(context)); + return std::shared_ptr( + new SecureAuthContext(grpc_call_auth_context(call))); } } // namespace grpc -- cgit v1.2.3