Skip to content

Commit

Permalink
Per #1899, correct logic in NumArray::init_from_scratch() to call Num…
Browse files Browse the repository at this point in the history
…Array::clear() instead of vector::clear().
  • Loading branch information
JohnHalleyGotway committed Sep 27, 2021
1 parent 0499b28 commit a8e3d0e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions met/src/basic/vx_util/num_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ NumArray & NumArray::operator=(const NumArray & a)
void NumArray::init_from_scratch()

{
e.clear();


clear();

return;

}
Expand All @@ -109,10 +110,9 @@ void NumArray::init_from_scratch()
void NumArray::clear()

{
if ( e.size() >0 ) {
e.clear();
}


e.clear();

Nelements = Nalloc = 0;

Sorted = false;
Expand Down

0 comments on commit a8e3d0e

Please sign in to comment.