diff --git a/src/background-parsing-task.h b/src/background-parsing-task.h index 1bf9d74121..bd96ee1f85 100644 --- a/src/background-parsing-task.h +++ b/src/background-parsing-task.h @@ -39,10 +39,9 @@ struct StreamedSource { std::unique_ptr info; std::unique_ptr parser; - private: - // Prevent copying. Not implemented. - StreamedSource(const StreamedSource&); - StreamedSource& operator=(const StreamedSource&); + // Prevent copying. + StreamedSource(const StreamedSource&) = delete; + StreamedSource& operator=(const StreamedSource&) = delete; }; diff --git a/src/frames.h b/src/frames.h index 12770231cf..102372886c 100644 --- a/src/frames.h +++ b/src/frames.h @@ -525,6 +525,8 @@ class StackFrame BASE_EMBEDDED { Isolate* isolate() const { return isolate_; } + void operator=(const StackFrame& original) = delete; + protected: inline explicit StackFrame(StackFrameIteratorBase* iterator); virtual ~StackFrame() { } @@ -563,9 +565,6 @@ class StackFrame BASE_EMBEDDED { friend class StackFrameIteratorBase; friend class StackHandlerIterator; friend class SafeStackFrameIterator; - - private: - void operator=(const StackFrame& original); }; diff --git a/src/handles.h b/src/handles.h index a7cd0e2497..a7eb31efca 100644 --- a/src/handles.h +++ b/src/handles.h @@ -293,8 +293,6 @@ class HandleScope { private: // Prevent heap allocation or illegal handle scopes. - HandleScope(const HandleScope&); - void operator=(const HandleScope&); void* operator new(size_t size); void operator delete(void* size_t); @@ -320,6 +318,8 @@ class HandleScope { friend class DeferredHandleScope; friend class HandleScopeImplementer; friend class Isolate; + + DISALLOW_COPY_AND_ASSIGN(HandleScope); };