Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: webrtc/common_types.cc

Issue 3006343002: Add explicit copy constructors to RTPHeader and RTPHeaderExtension (Closed)
Patch Set: Assignment constructors added. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_types.cc
diff --git a/webrtc/common_types.cc b/webrtc/common_types.cc
index 82307ce52b37393837d79bde3938ba101ab60c0c..1ea40990f48656adce2e3af1e2a6cb2eac55abb2 100644
--- a/webrtc/common_types.cc
+++ b/webrtc/common_types.cc
@@ -57,6 +57,12 @@ RTPHeaderExtension::RTPHeaderExtension()
videoContentType(VideoContentType::UNSPECIFIED),
has_video_timing(false) {}
+RTPHeaderExtension::RTPHeaderExtension(const RTPHeaderExtension& other) =
+ default;
+
+RTPHeaderExtension& RTPHeaderExtension::operator=(
+ const RTPHeaderExtension& other) = default;
+
RTPHeader::RTPHeader()
: markerBit(false),
payloadType(0),
@@ -70,6 +76,10 @@ RTPHeader::RTPHeader()
payload_type_frequency(0),
extension() {}
+RTPHeader::RTPHeader(const RTPHeader& other) = default;
+
+RTPHeader& RTPHeader::operator=(const RTPHeader& other) = default;
+
VideoCodec::VideoCodec()
: codecType(kVideoCodecUnknown),
plName(),
« no previous file with comments | « webrtc/common_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698