mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: use emptyLabelList to avoid reference to temporary (gcc 8.1)
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user