зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
d6f0ec8cea
Коммит
1b2f17e9ac
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче