Commit ba397778 authored by Andrew Heather's avatar Andrew Heather
Browse files

COMP: Resolved compiler warnings

parent 3611f039
......@@ -468,7 +468,7 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
completed = addedFaces.found(endFace);
// Add all face neighbours of face in the map
const labelList cf(std::move(addedFaces.toc()));
const labelList cf(addedFaces.toc());
addedFaces.clear();
for (const label cfi : cf)
......@@ -518,7 +518,7 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
completed = addedFaces.found(startFace);
// Add all face neighbours of face in the map
const labelList cf(std::move(addedFaces.toc()));
const labelList cf(addedFaces.toc());
addedFaces.clear();
for (const label cfi : cf)
......@@ -580,7 +580,7 @@ void Foam::slidingInterface::coupleInterface(polyTopoChange& ref) const
);
}
const labelList curMasterEdges(std::move(curMasterEdgesMap.toc()));
const labelList curMasterEdges(curMasterEdgesMap.toc());
curMasterEdgesMap.clear();
// For all master edges to intersect, skip the ones
......
......@@ -47,7 +47,7 @@ void Foam::enrichedPatch::calcMeshPoints() const
<< abort(FatalError);
}
meshPointsPtr_ = new labelList(std::move(pointMap().toc()));
meshPointsPtr_ = new labelList(pointMap().toc());
labelList& mp = *meshPointsPtr_;
sort(mp);
......
......@@ -174,12 +174,11 @@ void Foam::slidingInterface::calcAttachedAddressing() const
if (debug)
{
masterStickOutFacesPtr_ =
new labelList(std::move(stickOutFaceMap.sortedToc()));
new labelList(stickOutFaceMap.sortedToc());
}
else
{
masterStickOutFacesPtr_ =
new labelList(std::move(stickOutFaceMap.toc()));
masterStickOutFacesPtr_ = new labelList(stickOutFaceMap.toc());
}
// Slave side
......@@ -210,12 +209,11 @@ void Foam::slidingInterface::calcAttachedAddressing() const
if (debug)
{
slaveStickOutFacesPtr_ =
new labelList(std::move(stickOutFaceMap.sortedToc()));
new labelList(stickOutFaceMap.sortedToc());
}
else
{
slaveStickOutFacesPtr_ =
new labelList(std::move(stickOutFaceMap.toc()));
slaveStickOutFacesPtr_ = new labelList(stickOutFaceMap.toc());
}
stickOutFaceMap.clear();
......
......@@ -778,7 +778,7 @@ bool Foam::slidingInterface::projectPoints() const
completed = addedFaces.found(endFace);
// Add all face neighbours of face in the map
const labelList cf(std::move(addedFaces.toc()));
const labelList cf(addedFaces.toc());
addedFaces.clear();
for (const label cfi : cf)
......@@ -829,7 +829,7 @@ bool Foam::slidingInterface::projectPoints() const
completed = addedFaces.found(startFace);
// Add all face neighbours of face in the map
const labelList cf(std::move(addedFaces.toc()));
const labelList cf(addedFaces.toc());
addedFaces.clear();
for (const label cfi : cf)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment