summaryrefslogtreecommitdiffstats
path: root/remoting/base
diff options
context:
space:
mode:
authorvmpstr <vmpstr@chromium.org>2016-02-26 13:46:54 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-26 21:49:14 +0000
commit83a7f26e6402938c9afe9c68d4a0bd82791614e8 (patch)
tree0de13568952b09edadd2507c8d395af3e4153c8e /remoting/base
parente4dd8cc726ed956556807025eb6808db2cd8b8cd (diff)
downloadchromium_src-83a7f26e6402938c9afe9c68d4a0bd82791614e8.zip
chromium_src-83a7f26e6402938c9afe9c68d4a0bd82791614e8.tar.gz
chromium_src-83a7f26e6402938c9afe9c68d4a0bd82791614e8.tar.bz2
remoting: 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=garykac@chromium.org, dcheng@chromium.org, thakis@chromium.org Review URL: https://codereview.chromium.org/1736633002 Cr-Commit-Position: refs/heads/master@{#377988}
Diffstat (limited to 'remoting/base')
-rw-r--r--remoting/base/compound_buffer.cc2
-rw-r--r--remoting/base/compound_buffer.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/remoting/base/compound_buffer.cc b/remoting/base/compound_buffer.cc
index a659c23..18e4339 100644
--- a/remoting/base/compound_buffer.cc
+++ b/remoting/base/compound_buffer.cc
@@ -19,6 +19,8 @@ CompoundBuffer::DataChunk::DataChunk(
size(size_value) {
}
+CompoundBuffer::DataChunk::DataChunk(const DataChunk& other) = default;
+
CompoundBuffer::DataChunk::~DataChunk() {}
CompoundBuffer::CompoundBuffer()
diff --git a/remoting/base/compound_buffer.h b/remoting/base/compound_buffer.h
index 4883e11..d93b0d0 100644
--- a/remoting/base/compound_buffer.h
+++ b/remoting/base/compound_buffer.h
@@ -86,6 +86,7 @@ class CompoundBuffer {
struct DataChunk {
DataChunk(net::IOBuffer* buffer, const char* start, int size);
+ DataChunk(const DataChunk& other);
~DataChunk();
scoped_refptr<net::IOBuffer> buffer;