Add copy and move operations to SdpVideoFormat.

Needed to be able to add an SdpVideoFormat member to
VideoEncoderConfig or other move-only classes.

Bug: webrtc:8830
Change-Id: Ie15dbfec616b059e1492d2c17ebd210f0edbe00f
Reviewed-on: https://webrtc-review.googlesource.com/64983
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22642}
This commit is contained in:
Niels Möller 2018-03-28 09:02:09 +02:00 committed by Commit Bot
parent 1e48e8095c
commit c5d4461f87
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,8 @@ SdpVideoFormat::SdpVideoFormat(const std::string& name,
SdpVideoFormat::SdpVideoFormat(const SdpVideoFormat&) = default;
SdpVideoFormat::SdpVideoFormat(SdpVideoFormat&&) = default;
SdpVideoFormat& SdpVideoFormat::operator=(const SdpVideoFormat&) = default;
SdpVideoFormat& SdpVideoFormat::operator=(SdpVideoFormat&&) = default;
SdpVideoFormat::~SdpVideoFormat() = default;

View File

@ -25,6 +25,8 @@ struct SdpVideoFormat {
SdpVideoFormat(const std::string& name, const Parameters& parameters);
SdpVideoFormat(const SdpVideoFormat&);
SdpVideoFormat(SdpVideoFormat&&);
SdpVideoFormat& operator=(const SdpVideoFormat&);
SdpVideoFormat& operator=(SdpVideoFormat&&);
~SdpVideoFormat();