mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use move construct for cellZone/faceZone
This commit is contained in:
@ -591,7 +591,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
addr[n] = facei;
|
||||
flip[n] = faceToFlip[facei];
|
||||
n++;
|
||||
++n;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -233,8 +233,8 @@ int main(int argc, char *argv[])
|
||||
new faceZone
|
||||
(
|
||||
"membraneFaces",
|
||||
faces,
|
||||
zoneFlip,
|
||||
std::move(faces),
|
||||
std::move(zoneFlip),
|
||||
0,
|
||||
mesh.faceZones()
|
||||
);
|
||||
|
||||
@ -1925,7 +1925,7 @@ int main(int argc, char *argv[])
|
||||
new cellZone
|
||||
(
|
||||
zoneName, //name
|
||||
regionCells, //addressing
|
||||
std::move(regionCells), //addressing
|
||||
zoneI, //index
|
||||
cellZones //cellZoneMesh
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user