mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
Fix warnings
This commit is contained in:
parent
16a0f52921
commit
ca173ea989
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user