mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
fixes by matthias
This commit is contained in:
parent
76a9a8037b
commit
6741b74a54
@ -371,7 +371,7 @@ namespace netgen
|
||||
/// array copy
|
||||
ArrayMem & operator= (const FlatArray<T> & a2)
|
||||
{
|
||||
SetSize (a2.Size());
|
||||
this->SetSize (a2.Size());
|
||||
for (int i = 0; i < size; i++)
|
||||
(*this)[i] = a2[i];
|
||||
return *this;
|
||||
|
@ -38,6 +38,7 @@ namespace netgen
|
||||
void BaseDynamicMem :: SetName (const char * aname)
|
||||
{
|
||||
delete [] name;
|
||||
name = NULL;
|
||||
if (aname)
|
||||
{
|
||||
name = new char[strlen(aname)+1];
|
||||
|
Loading…
Reference in New Issue
Block a user