This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 0eb7810  cppcheck: Changed from C casting to C++ casting
0eb7810 is described below

commit 0eb7810fba923cd66f837991eac9c8f2ef659b42
Author: Bryan Call <[email protected]>
AuthorDate: Tue Apr 23 13:42:07 2019 +0800

    cppcheck: Changed from C casting to C++ casting
---
 iocore/net/SSLConfig.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/iocore/net/SSLConfig.cc b/iocore/net/SSLConfig.cc
index 491bd78..ca61712 100644
--- a/iocore/net/SSLConfig.cc
+++ b/iocore/net/SSLConfig.cc
@@ -475,7 +475,7 @@ SSLConfig::reconfigure()
 SSLConfigParams *
 SSLConfig::acquire()
 {
-  return ((SSLConfigParams *)configProcessor.get(configid));
+  return static_cast<SSLConfigParams *>(configProcessor.get(configid));
 }
 
 void
@@ -544,7 +544,7 @@ SSLCertificateConfig::reconfigure()
 SSLCertLookup *
 SSLCertificateConfig::acquire()
 {
-  return (SSLCertLookup *)configProcessor.get(configid);
+  return static_cast<SSLCertLookup *>(configProcessor.get(configid));
 }
 
 void

Reply via email to