| Index: net/ssl/openssl_client_key_store.h
|
| diff --git a/net/ssl/openssl_client_key_store.h b/net/ssl/openssl_client_key_store.h
|
| index 0cbb23a73f667f4226bde3a4eeb71ac59f5259fb..6c061484a92da9e1130d8cb64a001eb374602fb4 100644
|
| --- a/net/ssl/openssl_client_key_store.h
|
| +++ b/net/ssl/openssl_client_key_store.h
|
| @@ -73,7 +73,9 @@ class NET_EXPORT OpenSSLClientKeyStore {
|
| public:
|
| explicit KeyPair(EVP_PKEY* pub_key, EVP_PKEY* priv_key);
|
| KeyPair(const KeyPair& other);
|
| - void operator=(const KeyPair& other);
|
| + // Intentionally pass by value, in order to use the copy-and-swap idiom.
|
| + void operator=(KeyPair other);
|
| + void swap(KeyPair& other);
|
| ~KeyPair();
|
|
|
| crypto::ScopedEVP_PKEY public_key;
|
|
|