From 5c73df9febe63d99cd7b595a4681f86f662b2f4f Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Thu, 27 Feb 2020 16:11:03 +0300 Subject: [PATCH] use setEmpty in XArray Signed-off-by: Sergey Isakov --- rEFIt_UEFI/cpp_foundation/XArray.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rEFIt_UEFI/cpp_foundation/XArray.h b/rEFIt_UEFI/cpp_foundation/XArray.h index 354664d08..117e644fe 100755 --- a/rEFIt_UEFI/cpp_foundation/XArray.h +++ b/rEFIt_UEFI/cpp_foundation/XArray.h @@ -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 &XArray::operator =(const XArray &anArray) { xsize ui; - Empty(); + setEmpty(); for ( ui=0 ; ui