BUG: reference bound to a temporary

This commit is contained in:
Mark Olesen
2010-10-13 11:11:22 +02:00
parent 850fa066d3
commit 944af867b8

View File

@ -49,7 +49,7 @@ Foam::PatchTools::sortedEdgeFaces
const Field<PointType>& localPoints = p.localPoints(); const Field<PointType>& localPoints = p.localPoints();
// create the lists for the various results. (resized on completion) // create the lists for the various results. (resized on completion)
labelListList& sortedEdgeFaces = labelListList(edgeFaces.size()); labelListList sortedEdgeFaces(edgeFaces.size());
forAll(edgeFaces, edgeI) forAll(edgeFaces, edgeI)
{ {