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 <hta@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30185}
This commit is contained in:
Steve Anton 2020-01-08 11:20:04 -08:00 committed by Commit Bot
parent 340a62eb5a
commit 2a3190ff2a

View file

@ -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.
//