diff --git a/xpcom/glue/pldhash.cpp b/xpcom/glue/pldhash.cpp index f94455a56c34..c974e412a605 100644 --- a/xpcom/glue/pldhash.cpp +++ b/xpcom/glue/pldhash.cpp @@ -918,7 +918,7 @@ PLDHashTable::Iterator::Next() } PLDHashTable::RemovingIterator::RemovingIterator(RemovingIterator&& aOther) - : Iterator(mozilla::Move(aOther.mTable)) + : Iterator(mozilla::Move(aOther)) , mHaveRemoved(aOther.mHaveRemoved) { } diff --git a/xpcom/tests/TestPLDHash.cpp b/xpcom/tests/TestPLDHash.cpp index 28f5a8bb715a..729d0fd35fd5 100644 --- a/xpcom/tests/TestPLDHash.cpp +++ b/xpcom/tests/TestPLDHash.cpp @@ -236,8 +236,8 @@ static bool test_pldhash_RemovingIterator() // elision, compilers might optimize away move constructor calls for normal // iterator use. { - PLDHashTable::Iterator iter1(&t); - PLDHashTable::Iterator iter2(mozilla::Move(iter1)); + PLDHashTable::RemovingIterator iter1(&t); + PLDHashTable::RemovingIterator iter2(mozilla::Move(iter1)); } // First, we insert 64 items, which results in a capacity of 128, and a load