Index: talk/app/webrtc/java/jni/peerconnection_jni.cc |
diff --git a/talk/app/webrtc/java/jni/peerconnection_jni.cc b/talk/app/webrtc/java/jni/peerconnection_jni.cc |
index f44498443b408ead137500aa6e19c21c8f3e4f43..5b871d3cc865dd580b985c0ccf34a50d30121fdd 100644 |
--- a/talk/app/webrtc/java/jni/peerconnection_jni.cc |
+++ b/talk/app/webrtc/java/jni/peerconnection_jni.cc |
@@ -57,6 +57,7 @@ |
#define JNIEXPORT __attribute__((visibility("default"))) |
#include <limits> |
+#include <utility> |
#include "talk/app/webrtc/java/jni/classreferenceholder.h" |
#include "talk/app/webrtc/java/jni/jni_helpers.h" |
@@ -1631,7 +1632,7 @@ JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)( |
rtc::SSLIdentity::Generate(webrtc::kIdentityName, rtc::KT_ECDSA)); |
if (ssl_identity.get()) { |
rtc_config.certificates.push_back( |
- rtc::RTCCertificate::Create(ssl_identity.Pass())); |
+ rtc::RTCCertificate::Create(std::move(ssl_identity))); |
LOG(LS_INFO) << "ECDSA certificate created."; |
} else { |
// Failing to create certificate should not abort peer connection |