COMP: use emptyLabelList to avoid reference to temporary (gcc 8.1)

This commit is contained in:
Mark Olesen
2018-05-09 12:40:38 +02:00
parent 1513a049e0
commit f40d7ef578
4 changed files with 10 additions and 8 deletions

View File

@ -54,7 +54,7 @@ namespace Foam
void Foam::cylindrical::init
(
const objectRegistry& obr,
const List<label>& cells
const labelUList& cells
)
{
const polyMesh& mesh = refCast<const polyMesh>(obr);
@ -196,7 +196,7 @@ void Foam::cylindrical::updateCells
forAll(cells, i)
{
label celli = cells[i];
const label celli = cells[i];
vector dir = cc[celli] - origin_;
dir /= mag(dir) + VSMALL;

View File

@ -52,6 +52,7 @@ SourceFiles
#include "point.H"
#include "vector.H"
#include "ListOps.H"
#include "coordinateRotation.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -85,7 +86,7 @@ class cylindrical
void init
(
const objectRegistry& obr,
const List<label>& cells = List<label>()
const labelUList& cells = Foam::emptyLabelList
);