diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-22 07:56:52 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-22 07:56:52 +0000 |
commit | b99c0fc3ca39124354cb9a61a2a260db30c00de0 (patch) | |
tree | b1de63774a7b6198e2832bf73f1ded56446ee29b /net/quic/quic_data_writer.h | |
parent | c173e5a00b1e46f6f53a88baff946444ee00341d (diff) | |
download | chromium_src-b99c0fc3ca39124354cb9a61a2a260db30c00de0.zip chromium_src-b99c0fc3ca39124354cb9a61a2a260db30c00de0.tar.gz chromium_src-b99c0fc3ca39124354cb9a61a2a260db30c00de0.tar.bz2 |
Added DISALLOW_COPY_AND_ASSIGN to disable copy/assign.
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Copy_Constructors#Copy_Constructors
Sorry for missing this before while merging. jar pointed to the above
link on Friday and learned from him it is safer to add the above macro
whereever possible. Didn't touch .cc files (or *test.cc).
These changes are in internal CL: 65311983
Merge internal change: 65311983
R=rch@chromium.org
Review URL: https://codereview.chromium.org/242643009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/quic/quic_data_writer.h')
-rw-r--r-- | net/quic/quic_data_writer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/quic/quic_data_writer.h b/net/quic/quic_data_writer.h index f8a3751..0e14e87c 100644 --- a/net/quic/quic_data_writer.h +++ b/net/quic/quic_data_writer.h @@ -74,6 +74,8 @@ class NET_EXPORT_PRIVATE QuicDataWriter { char* buffer_; size_t capacity_; // Allocation size of payload (or -1 if buffer is const). size_t length_; // Current length of the buffer. + + DISALLOW_COPY_AND_ASSIGN(QuicDataWriter); }; } // namespace net |