Bug 915555 - Don't redundantly cast an unnamed expression to an rvalue reference, because 1) it's dumb, and 2) gcc 4.4 warns about casting an rvalue reference to an rvalue reference (which is harmless due to C++11's rvalue semantics). f=hub, r=trivial

This commit is contained in:
Jeff Walden 2013-09-12 10:55:14 -07:00
Родитель d6f0ec8cea
Коммит 1b2f17e9ac
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -442,7 +442,7 @@ nsTHashtable<EntryType>::s_CopyEntry(PLDHashTable *table,
EntryType* fromEntry =
const_cast<EntryType*>(reinterpret_cast<const EntryType*>(from));
new(to) EntryType(mozilla::Move(*fromEntry));
new(to) EntryType(*fromEntry);
fromEntry->~EntryType();
}