| Index: remoting/base/rsa_key_pair.cc
|
| diff --git a/remoting/base/rsa_key_pair.cc b/remoting/base/rsa_key_pair.cc
|
| index 66688e988db3155e42f90c25c4f8e89e1b1bf85e..98a153b4367dc1d9760314a79800f5dd03f67454 100644
|
| --- a/remoting/base/rsa_key_pair.cc
|
| +++ b/remoting/base/rsa_key_pair.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include <limits>
|
| #include <string>
|
| +#include <utility>
|
| #include <vector>
|
|
|
| #include "base/base64.h"
|
| @@ -21,7 +22,7 @@
|
| namespace remoting {
|
|
|
| RsaKeyPair::RsaKeyPair(scoped_ptr<crypto::RSAPrivateKey> key)
|
| - : key_(key.Pass()){
|
| + : key_(std::move(key)){
|
| DCHECK(key_);
|
| }
|
|
|
| @@ -34,7 +35,7 @@ scoped_refptr<RsaKeyPair> RsaKeyPair::Generate() {
|
| LOG(ERROR) << "Cannot generate private key.";
|
| return NULL;
|
| }
|
| - return new RsaKeyPair(key.Pass());
|
| + return new RsaKeyPair(std::move(key));
|
| }
|
|
|
| // static
|
| @@ -54,7 +55,7 @@ scoped_refptr<RsaKeyPair> RsaKeyPair::FromString(
|
| return NULL;
|
| }
|
|
|
| - return new RsaKeyPair(key.Pass());
|
| + return new RsaKeyPair(std::move(key));
|
| }
|
|
|
| std::string RsaKeyPair::ToString() const {
|
|
|