mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
use setEmpty in XArray
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
6c6fe90842
commit
5c73df9feb
@ -61,8 +61,7 @@ class XArray
|
||||
TYPE& end() { return ElementAt(m_len - 1); }
|
||||
|
||||
xsize insert(const TYPE newElement, xsize pos, xsize count = 1) { return Insert(newElement, pos, count); }
|
||||
const bool empty() const;
|
||||
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
const TYPE& ElementAt(xsize nIndex) const;
|
||||
@ -152,7 +151,7 @@ const XArray<TYPE> &XArray<TYPE>::operator =(const XArray<TYPE> &anArray)
|
||||
{
|
||||
xsize ui;
|
||||
|
||||
Empty();
|
||||
setEmpty();
|
||||
for ( ui=0 ; ui<anArray.Length() ; ui+=1 ) AddCopy(anArray.Data() );
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user