Bug 1600283 - Use std::move instead of forget. r=#dom-workers-and-storage draft
authorSimon Giesecke <sgiesecke@mozilla.com>
Wed, 04 Dec 2019 16:50:26 +0000
changeset 2516008 ad7ac3cb82e3829ea6f874927a52654fed87a255
parent 2516007 be843f9a84a87522a0c5c320cc5a84439f9ab1f9
child 2516009 1be1a40a53a7dfb74e1bbedb14110ed5b7f1bd99
push id460090
push userreviewbot
push dateWed, 04 Dec 2019 16:51:29 +0000
treeherdertry@35d310cdd9cf [default view] [failures only]
bugs1600283
milestone73.0a1
Bug 1600283 - Use std::move instead of forget. r=#dom-workers-and-storage Differential Revision: https://phabricator.services.mozilla.com/D55513 Differential Diff: PHID-DIFF-wsf3utidqjrfzwzfr2go
dom/indexedDB/IDBFactory.cpp
--- a/dom/indexedDB/IDBFactory.cpp
+++ b/dom/indexedDB/IDBFactory.cpp
@@ -711,17 +711,17 @@ RefPtr<IDBOpenDBRequest> IDBFactory::Ope
 
     if (newIDBThreadLocal) {
       if (!threadLocal) {
         threadLocal = BackgroundChildImpl::GetThreadLocalForCurrentThread();
       }
       MOZ_ASSERT(threadLocal);
       MOZ_ASSERT(!threadLocal->mIndexedDBThreadLocal);
 
-      threadLocal->mIndexedDBThreadLocal = newIDBThreadLocal.forget();
+      threadLocal->mIndexedDBThreadLocal = std::move(newIDBThreadLocal);
     }
   }
 
   RefPtr<IDBOpenDBRequest> request =
       IDBOpenDBRequest::Create(aCx, this, mGlobal);
   if (!request) {
     MOZ_ASSERT(!NS_IsMainThread());
     aRv.ThrowUncatchableException();