From ad8e04ac88be37d5ccb6c2cf61f52b224dca493c Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Mon, 1 Nov 2010 04:16:27 +0000 Subject: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/x509_certificate_mac.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/base/x509_certificate_mac.cc') diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc index 05fbe63..361e37c 100644 --- a/net/base/x509_certificate_mac.cc +++ b/net/base/x509_certificate_mac.cc @@ -872,10 +872,10 @@ bool X509Certificate::IsIssuedBy( for (int i = 0; i < n; ++i) { SecCertificateRef cert_handle = reinterpret_cast( const_cast(CFArrayGetValueAtIndex(cert_chain, i))); - scoped_refptr cert = X509Certificate::CreateFromHandle( + scoped_refptr cert(X509Certificate::CreateFromHandle( cert_handle, X509Certificate::SOURCE_LONE_CERT_IMPORT, - X509Certificate::OSCertHandles()); + X509Certificate::OSCertHandles())); for (unsigned j = 0; j < valid_issuers.size(); j++) { if (cert->issuer().Matches(valid_issuers[j])) return true; -- cgit v1.1