diff options
author | Vijay Pai <vpai@google.com> | 2018-03-05 09:58:05 -0800 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-03-05 16:35:10 -0800 |
commit | 7fed69b7ad10a06c2eedaaf0279f44f2bab0d85c (patch) | |
tree | cab05136a7422d5ce317fe7e7aa4f959f7e9f125 /src/cpp/client | |
parent | 673439d5bd2d1711c10e8c4d29ceee3e67d585fd (diff) |
Use static_cast rather than reinterpret_cast whenever possible
Diffstat (limited to 'src/cpp/client')
-rw-r--r-- | src/cpp/client/secure_credentials.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpp/client/secure_credentials.cc b/src/cpp/client/secure_credentials.cc index 539db84db3..19d67c2e06 100644 --- a/src/cpp/client/secure_credentials.cc +++ b/src/cpp/client/secure_credentials.cc @@ -168,7 +168,7 @@ std::shared_ptr<CallCredentials> CompositeCallCredentials( void MetadataCredentialsPluginWrapper::Destroy(void* wrapper) { if (wrapper == nullptr) return; MetadataCredentialsPluginWrapper* w = - reinterpret_cast<MetadataCredentialsPluginWrapper*>(wrapper); + static_cast<MetadataCredentialsPluginWrapper*>(wrapper); delete w; } @@ -180,7 +180,7 @@ int MetadataCredentialsPluginWrapper::GetMetadata( const char** error_details) { GPR_ASSERT(wrapper); MetadataCredentialsPluginWrapper* w = - reinterpret_cast<MetadataCredentialsPluginWrapper*>(wrapper); + static_cast<MetadataCredentialsPluginWrapper*>(wrapper); if (!w->plugin_) { *num_creds_md = 0; *status = GRPC_STATUS_OK; |