Replace WTF::move with WTFMove
[WebKit-https.git] / Source / WebCore / Modules / indexeddb / server / MemoryBackingStoreTransaction.cpp
index be38072..087c5da 100644 (file)
@@ -93,7 +93,7 @@ void MemoryBackingStoreTransaction::indexDeleted(std::unique_ptr<MemoryIndex> in
 
     auto addResult = m_deletedIndexes.add(index->info().name(), nullptr);
     if (addResult.isNewEntry)
-        addResult.iterator->value = WTF::move(index);
+        addResult.iterator->value = WTFMove(index);
 }
 
 void MemoryBackingStoreTransaction::addExistingObjectStore(MemoryObjectStore& objectStore)
@@ -118,7 +118,7 @@ void MemoryBackingStoreTransaction::objectStoreDeleted(std::unique_ptr<MemoryObj
 
     auto addResult = m_deletedObjectStores.add(objectStore->info().name(), nullptr);
     if (addResult.isNewEntry)
-        addResult.iterator->value = WTF::move(objectStore);
+        addResult.iterator->value = WTFMove(objectStore);
 }
 
 void MemoryBackingStoreTransaction::objectStoreCleared(MemoryObjectStore& objectStore, std::unique_ptr<KeyValueMap>&& keyValueMap, std::unique_ptr<std::set<IDBKeyData>>&& orderedKeys)
@@ -131,10 +131,10 @@ void MemoryBackingStoreTransaction::objectStoreCleared(MemoryObjectStore& object
     if (!addResult.isNewEntry)
         return;
 
-    addResult.iterator->value = WTF::move(keyValueMap);
+    addResult.iterator->value = WTFMove(keyValueMap);
 
     ASSERT(!m_clearedOrderedKeys.contains(&objectStore));
-    m_clearedOrderedKeys.add(&objectStore, WTF::move(orderedKeys));
+    m_clearedOrderedKeys.add(&objectStore, WTFMove(orderedKeys));
 }
 
 void MemoryBackingStoreTransaction::indexCleared(MemoryIndex& index, std::unique_ptr<IndexValueStore>&& valueStore)
@@ -145,7 +145,7 @@ void MemoryBackingStoreTransaction::indexCleared(MemoryIndex& index, std::unique
     if (!addResult.isNewEntry)
         return;
 
-    addResult.iterator->value = WTF::move(valueStore);
+    addResult.iterator->value = WTFMove(valueStore);
 }
 
 void MemoryBackingStoreTransaction::recordValueChanged(MemoryObjectStore& objectStore, const IDBKeyData& key, ThreadSafeDataBuffer* value)
@@ -184,7 +184,7 @@ void MemoryBackingStoreTransaction::abort()
     // but the entries in the map still remain.
     for (auto& objectStore : m_deletedObjectStores.values()) {
         MemoryObjectStore* rawObjectStore = objectStore.get();
-        m_backingStore.restoreObjectStoreForVersionChangeAbort(WTF::move(objectStore));
+        m_backingStore.restoreObjectStoreForVersionChangeAbort(WTFMove(objectStore));
 
         ASSERT(!m_objectStores.contains(rawObjectStore));
         m_objectStores.add(rawObjectStore);
@@ -201,7 +201,7 @@ void MemoryBackingStoreTransaction::abort()
     // Restore cleared index value stores before we re-insert values into object stores
     // because inserting those values will regenerate the appropriate index values.
     for (auto& iterator : m_clearedIndexValueStores)
-        iterator.key->replaceIndexValueStore(WTF::move(iterator.value));
+        iterator.key->replaceIndexValueStore(WTFMove(iterator.value));
     m_clearedIndexValueStores.clear();
     
     for (auto objectStore : m_objectStores) {
@@ -211,7 +211,7 @@ void MemoryBackingStoreTransaction::abort()
         auto clearedKeyValueMap = m_clearedKeyValueMaps.take(objectStore);
         if (clearedKeyValueMap) {
             ASSERT(m_clearedOrderedKeys.contains(objectStore));
-            objectStore->replaceKeyValueStore(WTF::move(clearedKeyValueMap), m_clearedOrderedKeys.take(objectStore));
+            objectStore->replaceKeyValueStore(WTFMove(clearedKeyValueMap), m_clearedOrderedKeys.take(objectStore));
         }
 
         auto keyValueMap = m_originalValues.take(objectStore);
@@ -228,7 +228,7 @@ void MemoryBackingStoreTransaction::abort()
     // but the entries in the map still remain.
     for (auto& index : m_deletedIndexes.values()) {
         MemoryObjectStore& objectStore = index->objectStore();
-        objectStore.maybeRestoreDeletedIndex(WTF::move(index));
+        objectStore.maybeRestoreDeletedIndex(WTFMove(index));
     }
 
     // This clears the entries from the map.