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
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation | Copyright (C) 2016-2017 OpenCFD Ltd.
|
||||
\\/ M anipulation | Copyright (C) 2016-2018 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -40,6 +40,7 @@ SourceFiles
|
||||
#include "pointField.H"
|
||||
#include "labelledTri.H"
|
||||
#include "HashSet.H"
|
||||
#include "ListOps.H"
|
||||
#include "surfZoneList.H"
|
||||
#include "surfaceFormatsCore.H"
|
||||
#include "runTimeSelectionTables.H"
|
||||
@ -101,7 +102,7 @@ public:
|
||||
const pointField& pointLst,
|
||||
const UList<Face>& faceLst,
|
||||
const UList<surfZone>& zoneLst = List<surfZone>(),
|
||||
const labelUList& faceMap = List<label>()
|
||||
const labelUList& faceMap = Foam::emptyLabelList
|
||||
);
|
||||
|
||||
|
||||
|
||||
@ -54,10 +54,10 @@ class meshedSurfRef
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow construct as copy
|
||||
//- No copy construct
|
||||
meshedSurfRef(const meshedSurfRef&) = delete;
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
//- No copy construct assignment
|
||||
void operator=(const meshedSurfRef&) = delete;
|
||||
|
||||
public:
|
||||
@ -69,7 +69,7 @@ public:
|
||||
(
|
||||
const pointField& pts,
|
||||
const faceList& faces,
|
||||
const labelList& ids = Foam::emptyLabelList
|
||||
const labelUList& ids = Foam::emptyLabelList
|
||||
)
|
||||
:
|
||||
points_(pts),
|
||||
|
||||
Reference in New Issue
Block a user