| Index: runtime/vm/object.h
|
| ===================================================================
|
| --- runtime/vm/object.h (revision 21785)
|
| +++ runtime/vm/object.h (working copy)
|
| @@ -127,6 +127,11 @@
|
| } \
|
| } \
|
| /* Disallow allocation, copy constructors and override super assignment. */ \
|
| + public: /* NOLINT */ \
|
| + void operator delete(void* pointer) { \
|
| + UNREACHABLE(); \
|
| + } \
|
| + private: /* NOLINT */ \
|
| void* operator new(size_t size); \
|
| object(const object& value); \
|
| void operator=(Raw##super* value); \
|
| @@ -525,9 +530,7 @@
|
| friend class ExternalOneByteString;
|
| friend class ExternalTwoByteString;
|
|
|
| - // Disallow allocation.
|
| - void* operator new(size_t size);
|
| - // Disallow copy constructor.
|
| + DISALLOW_ALLOCATION();
|
| DISALLOW_COPY_AND_ASSIGN(Object);
|
| };
|
|
|
|
|