am 72c36298: Use C++11 deleted functions to implement DISALLOW_ macros

* commit '72c362985cdafacfe9411aa700666bc0be556483':
  Use C++11 deleted functions to implement DISALLOW_ macros
main
Yohei Yukawa 2014-03-06 04:23:14 -08:00 committed by Android Git Automerger
commit 5677793822
1 changed files with 3 additions and 3 deletions

View File

@ -352,13 +352,13 @@ template<typename T> AK_FORCE_INLINE const T &max(const T &a, const T &b) { retu
#define MIN_OUTPUT_INDEX_FOR_DEBUG (-1)
#define DISALLOW_DEFAULT_CONSTRUCTOR(TypeName) \
TypeName()
TypeName() = delete
#define DISALLOW_COPY_CONSTRUCTOR(TypeName) \
TypeName(const TypeName&)
TypeName(const TypeName&) = delete
#define DISALLOW_ASSIGNMENT_OPERATOR(TypeName) \
void operator=(const TypeName&)
void operator=(const TypeName&) = delete
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
DISALLOW_COPY_CONSTRUCTOR(TypeName); \