mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1250666 - Forward Variant's move constructor argument correctly to the underlying variant type. r=waldo
This commit is contained in:
parent
09c97b5b63
commit
57081a13af
@ -433,7 +433,7 @@ public:
|
||||
explicit Variant(RefT&& aT)
|
||||
: tag(Impl::template tag<T>())
|
||||
{
|
||||
new (ptr()) T(Forward<T>(aT));
|
||||
new (ptr()) T(Forward<RefT>(aT));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user