Index: third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp |
index fa26ce6c5aeeaf29190819da5069c7ecd8c15c20..bd627e6095a03126b6617b2f40ad83b5e6dc8dfa 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp |
@@ -337,7 +337,7 @@ void IDBRequest::EnqueueResponse(PassRefPtr<IDBValue> prp_value) { |
value->KeyPath() == EffectiveObjectStore(source_)->IdbKeyPath()); |
#endif |
- EnqueueResultInternal(IDBAny::Create(value.Release())); |
+ EnqueueResultInternal(IDBAny::Create(std::move(value))); |
} |
void IDBRequest::EnqueueResponse(int64_t value) { |
@@ -443,10 +443,11 @@ DispatchEventResult IDBRequest::DispatchEventInternal(Event* event) { |
IDBCursor* cursor_to_notify = nullptr; |
if (event->type() == EventTypeNames::success) { |
cursor_to_notify = GetResultCursor(); |
- if (cursor_to_notify) |
+ if (cursor_to_notify) { |
cursor_to_notify->SetValueReady(cursor_key_.Release(), |
cursor_primary_key_.Release(), |
- cursor_value_.Release()); |
+ std::move(cursor_value_)); |
+ } |
} |
if (event->type() == EventTypeNames::upgradeneeded) { |