diff options
author | kwiberg <kwiberg@webrtc.org> | 2015-12-17 03:04:15 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-17 11:04:24 +0000 |
commit | 0eb15ed7b806125774bd13fb214aeb403e2c6857 (patch) | |
tree | cfceaf6b8fa1fac35bbc17171994f49543f22abe /talk/app/webrtc/java/jni | |
parent | e376f0f2dfcbe46274dd79807a56715aea956fbd (diff) | |
download | webrtc-0eb15ed7b806125774bd13fb214aeb403e2c6857.tar.gz |
Don't call the Pass methods of rtc::Buffer, rtc::scoped_ptr, and rtc::ScopedVector
We can now use std::move instead!
This CL leaves the Pass methods in place; a follow-up CL will add deprecation annotations to them.
Review URL: https://codereview.webrtc.org/1460043002
Cr-Commit-Position: refs/heads/master@{#11064}
Diffstat (limited to 'talk/app/webrtc/java/jni')
-rw-r--r-- | talk/app/webrtc/java/jni/peerconnection_jni.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/talk/app/webrtc/java/jni/peerconnection_jni.cc b/talk/app/webrtc/java/jni/peerconnection_jni.cc index f44498443b..5b871d3cc8 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 |