diff options
author | vmpstr <vmpstr@chromium.org> | 2016-02-26 12:49:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-26 20:50:19 +0000 |
commit | 9750c9d9a4b7c8b84716facbf16c735ae9b355bf (patch) | |
tree | 9393c9ba347b5499b403c87eaed31e02b91bd673 /media/cast/net | |
parent | 60c10a4ce69ac02dd77c3616e95d2d4f99bd6a29 (diff) | |
download | chromium_src-9750c9d9a4b7c8b84716facbf16c735ae9b355bf.zip chromium_src-9750c9d9a4b7c8b84716facbf16c735ae9b355bf.tar.gz chromium_src-9750c9d9a4b7c8b84716facbf16c735ae9b355bf.tar.bz2 |
media: Add out-of-line copy ctors for complex classes.
This patch adds out of line copy constructors for classes that our
clang-plugin considers heavy. This is an effort to enable copy
constructor checks by default.
BUG=436357
R=dalecurtis@chromium.org, dcheng@chromium.org, thakis@chromium.org
Review URL: https://codereview.chromium.org/1731403002
Cr-Commit-Position: refs/heads/master@{#377967}
Diffstat (limited to 'media/cast/net')
-rw-r--r-- | media/cast/net/rtcp/rtcp_defines.cc | 2 | ||||
-rw-r--r-- | media/cast/net/rtcp/rtcp_defines.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/media/cast/net/rtcp/rtcp_defines.cc b/media/cast/net/rtcp/rtcp_defines.cc index b4f363e..f7a1a6c 100644 --- a/media/cast/net/rtcp/rtcp_defines.cc +++ b/media/cast/net/rtcp/rtcp_defines.cc @@ -21,6 +21,8 @@ RtcpReceiverEventLogMessage::~RtcpReceiverEventLogMessage() {} RtcpReceiverFrameLogMessage::RtcpReceiverFrameLogMessage(RtpTimeTicks timestamp) : rtp_timestamp_(timestamp) {} +RtcpReceiverFrameLogMessage::RtcpReceiverFrameLogMessage( + const RtcpReceiverFrameLogMessage& other) = default; RtcpReceiverFrameLogMessage::~RtcpReceiverFrameLogMessage() {} RtcpReceiverReferenceTimeReport::RtcpReceiverReferenceTimeReport() diff --git a/media/cast/net/rtcp/rtcp_defines.h b/media/cast/net/rtcp/rtcp_defines.h index 69a81bf..98d69bb 100644 --- a/media/cast/net/rtcp/rtcp_defines.h +++ b/media/cast/net/rtcp/rtcp_defines.h @@ -69,6 +69,7 @@ typedef std::list<RtcpReceiverEventLogMessage> RtcpReceiverEventLogMessages; struct RtcpReceiverFrameLogMessage { explicit RtcpReceiverFrameLogMessage(RtpTimeTicks rtp_timestamp); + RtcpReceiverFrameLogMessage(const RtcpReceiverFrameLogMessage& other); ~RtcpReceiverFrameLogMessage(); const RtpTimeTicks rtp_timestamp_; |