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

Side by Side Diff: third_party/snappy/linux/snappy-stubs-public.h

Issue 1222403002: Use "= delete" for DISALLOW_COPY_AND_ASSIGN on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « base/macros.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 Google Inc. All Rights Reserved. 1 // Copyright 2011 Google Inc. All Rights Reserved.
2 // Author: sesse@google.com (Steinar H. Gunderson) 2 // Author: sesse@google.com (Steinar H. Gunderson)
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 typedef unsigned short uint16; 74 typedef unsigned short uint16;
75 typedef int int32; 75 typedef int int32;
76 typedef unsigned int uint32; 76 typedef unsigned int uint32;
77 typedef long long int64; 77 typedef long long int64;
78 typedef unsigned long long uint64; 78 typedef unsigned long long uint64;
79 #endif 79 #endif
80 80
81 typedef std::string string; 81 typedef std::string string;
82 82
83 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ 83 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \
84 TypeName(const TypeName&); \ 84 TypeName(const TypeName&) = delete; \
85 void operator=(const TypeName&) 85 void operator=(const TypeName&) = delete
86 86
87 #if 0 87 #if 0
88 // Windows does not have an iovec type, yet the concept is universally useful. 88 // Windows does not have an iovec type, yet the concept is universally useful.
89 // It is simple to define it ourselves, so we put it inside our own namespace. 89 // It is simple to define it ourselves, so we put it inside our own namespace.
90 struct iovec { 90 struct iovec {
91 void* iov_base; 91 void* iov_base;
92 size_t iov_len; 92 size_t iov_len;
93 }; 93 };
94 #endif 94 #endif
95 95
96 } // namespace snappy 96 } // namespace snappy
97 97
98 #endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_ 98 #endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_
OLDNEW
« no previous file with comments | « base/macros.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698