temp branch with array fix while we wait for a master branch with Dales's recent changes

This commit is contained in:
Steve Baer
2018-09-27 14:43:18 -07:00
committed by sbaer
parent 5669c93c80
commit cb5458ed8b

View File

@@ -1117,13 +1117,14 @@ ON_ClassArray<T>& ON_ClassArray<T>::operator=( ON_ClassArray<T>&& src ) ON_NOEXC
{ {
if( this != &src ) if( this != &src )
{ {
this->Destroy(); ON_ClassArray<T>::operator=(std::move(src));
m_a = src.m_a; //this->Destroy();
m_count = src.m_count; //m_a = src.m_a;
m_capacity = src.m_capacity; //m_count = src.m_count;
src.m_a = 0; //m_capacity = src.m_capacity;
src.m_count = 0; //src.m_a = 0;
src.m_capacity = 0; //src.m_count = 0;
//src.m_capacity = 0;
} }
return *this; return *this;
} }