aboutsummaryrefslogtreecommitdiff
path: root/webrtc/p2p/base/dtlstransportchannel.cc
diff options
context:
space:
mode:
authorkwiberg <kwiberg@webrtc.org>2015-12-17 03:04:15 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-17 11:04:24 +0000
commit0eb15ed7b806125774bd13fb214aeb403e2c6857 (patch)
treecfceaf6b8fa1fac35bbc17171994f49543f22abe /webrtc/p2p/base/dtlstransportchannel.cc
parente376f0f2dfcbe46274dd79807a56715aea956fbd (diff)
downloadwebrtc-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 'webrtc/p2p/base/dtlstransportchannel.cc')
-rw-r--r--webrtc/p2p/base/dtlstransportchannel.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/webrtc/p2p/base/dtlstransportchannel.cc b/webrtc/p2p/base/dtlstransportchannel.cc
index 95014f9a62..e1de4514ff 100644
--- a/webrtc/p2p/base/dtlstransportchannel.cc
+++ b/webrtc/p2p/base/dtlstransportchannel.cc
@@ -8,6 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <utility>
+
#include "webrtc/p2p/base/dtlstransportchannel.h"
#include "webrtc/p2p/base/common.h"
@@ -224,7 +226,7 @@ bool DtlsTransportChannelWrapper::SetRemoteFingerprint(
}
// At this point we know we are doing DTLS
- remote_fingerprint_value_ = remote_fingerprint_value.Pass();
+ remote_fingerprint_value_ = std::move(remote_fingerprint_value);
remote_fingerprint_algorithm_ = digest_alg;
bool reconnect = dtls_;