summaryrefslogtreecommitdiffstats
path: root/net/base/x509_certificate.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/x509_certificate.h')
-rw-r--r--net/base/x509_certificate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index 5956826..1e2419e 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -75,7 +75,7 @@ class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> {
// Principal represent an X.509 principal.
struct Principal {
Principal() { }
- explicit Principal(std::string name) : common_name(name) { }
+ explicit Principal(const std::string& name) : common_name(name) { }
// The different attributes for a principal. They may be "".
// Note that some of them can have several values.