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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMArrayBufferBase.h

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMArrayBufferBase_h 5 #ifndef DOMArrayBufferBase_h
6 #define DOMArrayBufferBase_h 6 #define DOMArrayBufferBase_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 25 matching lines...) Expand all
36 v8::Local<v8::Object> wrap(v8::Isolate*, 36 v8::Local<v8::Object> wrap(v8::Isolate*,
37 v8::Local<v8::Object> creationContext) override { 37 v8::Local<v8::Object> creationContext) override {
38 NOTREACHED(); 38 NOTREACHED();
39 return v8::Local<v8::Object>(); 39 return v8::Local<v8::Object>();
40 } 40 }
41 41
42 DEFINE_INLINE_VIRTUAL_TRACE() {} 42 DEFINE_INLINE_VIRTUAL_TRACE() {}
43 43
44 protected: 44 protected:
45 explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer) 45 explicit DOMArrayBufferBase(PassRefPtr<WTF::ArrayBuffer> buffer)
46 : m_buffer(buffer) { 46 : m_buffer(std::move(buffer)) {
47 DCHECK(m_buffer); 47 DCHECK(m_buffer);
48 } 48 }
49 49
50 RefPtr<WTF::ArrayBuffer> m_buffer; 50 RefPtr<WTF::ArrayBuffer> m_buffer;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // DOMArrayBufferBase_h 55 #endif // DOMArrayBufferBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698