mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: avoid xfer on simple data types
- in many places can use move construcors or rely on RVO
This commit is contained in:
@ -1545,9 +1545,8 @@ void Foam::globalMeshData::calcGlobalPointBoundaryCells() const
|
||||
}
|
||||
|
||||
|
||||
boundaryCellsPtr_.reset(new labelList());
|
||||
boundaryCellsPtr_.reset(new labelList(std::move(cellMap)));
|
||||
labelList& boundaryCells = boundaryCellsPtr_();
|
||||
boundaryCells.transfer(cellMap.shrink());
|
||||
|
||||
|
||||
// Convert point-cells to global (boundary)cell numbers
|
||||
|
||||
Reference in New Issue
Block a user