From 2a3190ff2ab1b55ac5bea28e61dabd2163251d1b Mon Sep 17 00:00:00 2001 From: Steve Anton Date: Wed, 8 Jan 2020 11:20:04 -0800 Subject: [PATCH] Re-introduce the RTCError move constructor/assignment They appear to have been unintentionally removed in a previous CL: https://webrtc-review.googlesource.com/c/src/+/161304 Bug: None Change-Id: Ia677b19fafe59a686262635dc90173b9f25d1bd6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/165421 Reviewed-by: Harald Alvestrand Commit-Queue: Steve Anton Cr-Commit-Position: refs/heads/master@{#30185} --- api/rtc_error.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/rtc_error.h b/api/rtc_error.h index 0e264af274..b8cb7f0bcd 100644 --- a/api/rtc_error.h +++ b/api/rtc_error.h @@ -115,7 +115,9 @@ class RTC_EXPORT RTCError { // but copy and assignment are provided for those cases that need it. // Note that this has extra overhead because it copies strings. RTCError(const RTCError& other) = default; + RTCError(RTCError&&) = default; RTCError& operator=(const RTCError& other) = default; + RTCError& operator=(RTCError&&) = default; // Identical to default constructed error. //