bug 976927 support nsAutoTArray::operator=(const nsTArray&) r=froydnj

--HG--
extra : rebase_source : 9835cd5b05427611d5e490eee88602b2578dc0b8
This commit is contained in:
Karl Tomlinson 2014-11-19 12:40:28 +13:00
parent ea82aafee4
commit 3ed6850be8

View File

@ -2003,6 +2003,13 @@ public:
{
}
template<typename Allocator>
self_type& operator=(const nsTArray_Impl<E, Allocator>& other)
{
Base::operator=(other);
return *this;
}
operator const AutoFallibleTArray<E, N>&() const
{
return *reinterpret_cast<const AutoFallibleTArray<E, N>*>(this);
@ -2033,6 +2040,13 @@ public:
{
}
template<typename Allocator>
self_type& operator=(const nsTArray_Impl<E, Allocator>& other)
{
Base::operator=(other);
return *this;
}
operator const nsAutoTArray<E, N>&() const
{
return *reinterpret_cast<const nsAutoTArray<E, N>*>(this);