diff options
author | vmpstr <vmpstr@chromium.org> | 2016-02-24 12:22:05 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-24 20:23:08 +0000 |
commit | f77aca2503208de78d2d5c68ffeb33090dccdb05 (patch) | |
tree | a253d5249ba4e7e06f56b06295df09c6e6e2526b /device/hid/hid_connection.h | |
parent | b3d1504c42eb1a4dc5c3ac2cfaa41f45f877bddf (diff) | |
download | chromium_src-f77aca2503208de78d2d5c68ffeb33090dccdb05.zip chromium_src-f77aca2503208de78d2d5c68ffeb33090dccdb05.tar.gz chromium_src-f77aca2503208de78d2d5c68ffeb33090dccdb05.tar.bz2 |
device: 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=reillyg@chromium.org, dcheng@chromium.org, thakis@chromium.org
Review URL: https://codereview.chromium.org/1729843003
Cr-Commit-Position: refs/heads/master@{#377367}
Diffstat (limited to 'device/hid/hid_connection.h')
-rw-r--r-- | device/hid/hid_connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/device/hid/hid_connection.h b/device/hid/hid_connection.h index 9cc8aaf..1bf8d2e 100644 --- a/device/hid/hid_connection.h +++ b/device/hid/hid_connection.h @@ -97,6 +97,7 @@ class HidConnection : public base::RefCountedThreadSafe<HidConnection> { struct PendingHidReport { PendingHidReport(); + PendingHidReport(const PendingHidReport& other); ~PendingHidReport(); scoped_refptr<net::IOBuffer> buffer; @@ -105,6 +106,7 @@ struct PendingHidReport { struct PendingHidRead { PendingHidRead(); + PendingHidRead(const PendingHidRead& other); ~PendingHidRead(); HidConnection::ReadCallback callback; |