Fix warnings

This commit is contained in:
Matthias Hochsteger 2023-03-06 16:19:18 +01:00
parent 16a0f52921
commit ca173ea989
4 changed files with 6 additions and 6 deletions

View File

@ -1468,7 +1468,7 @@ inline size_t HashValue (INDEX_3 i3, size_t size) { return (i3[0]+15*size_t(i3[1
ClosedHashTable tmp(2*Size());
for (auto both : *this)
tmp[both.first] = both.second;
*this = move(tmp);
*this = std::move(tmp);
}
// returns true if new position is created

View File

@ -452,7 +452,7 @@ namespace netgen
if constexpr(std::is_trivially_copyable<T>::value)
memcpy (p, data, sizeof(T)*mins);
else
for (size_t i = 0; i < mins; i++) p[i] = move(data[i]);
for (size_t i = 0; i < mins; i++) p[i] = std::move(data[i]);
if (ownmem)
delete [] data;

View File

@ -35,7 +35,7 @@ protected:
public:
///
BASE_TABLE (BASE_TABLE && table2)
: data(move(table2.data)), oneblock(table2.oneblock)
: data(std::move(table2.data)), oneblock(table2.oneblock)
{
table2.oneblock = nullptr;
}
@ -48,7 +48,7 @@ public:
BASE_TABLE & operator= (BASE_TABLE && table2)
{
data = move(table2.data);
data = std::move(table2.data);
Swap (oneblock, table2.oneblock);
return *this;
}

View File

@ -477,7 +477,7 @@ void netrule :: LoadRule (istream & ist)
{
double lam1 = 1.0/(i+1);
oldutofreearea_i[i] = move(DenseMatrix (oldutofreearea.Height(), oldutofreearea.Width()));
oldutofreearea_i[i] = std::move(DenseMatrix (oldutofreearea.Height(), oldutofreearea.Width()));
DenseMatrix & mati = oldutofreearea_i[i];
for (j = 0; j < oldutofreearea.Height(); j++)
for (int k = 0; k < oldutofreearea.Width(); k++)
@ -597,7 +597,7 @@ void Meshing2 :: LoadRules (const char * filename, bool quad)
rule -> LoadRule(*ist);
//(*testout) << "fr2" << endl;
rules.Append (move(rule));
rules.Append (std::move(rule));
}
//(*testout) << "loop" << endl;
}