Const ref that message
authorjoshaber <joshaber@gmail.com>
Mon, 3 Apr 2017 19:28:44 +0000 (15:28 -0400)
committerjoshaber <joshaber@gmail.com>
Mon, 3 Apr 2017 19:28:44 +0000 (15:28 -0400)
atom/browser/ui/certificate_trust.h
atom/browser/ui/certificate_trust_mac.mm

index 30271ed..085d04d 100644 (file)
@@ -21,7 +21,7 @@ typedef base::Callback<void(bool result)> ShowTrustCallback;
 
 void ShowCertificateTrust(atom::NativeWindow* parent_window,
                           const scoped_refptr<net::X509Certificate>& cert,
-                          std::string message,
+                          const std::string& message,
                           const ShowTrustCallback& callback);
 
 }  // namespace certificate_trust
index a3774e5..1e7ad52 100644 (file)
@@ -89,7 +89,7 @@ namespace certificate_trust {
 
 void ShowCertificateTrust(atom::NativeWindow* parent_window,
                           const scoped_refptr<net::X509Certificate>& cert,
-                          std::string message,
+                          const std::string& message,
                           const ShowTrustCallback& callback) {
   auto sec_policy = SecPolicyCreateBasicX509();
   auto cert_chain = cert->CreateOSCertChainForCert();