mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: two-parameter Foam::name replaced by word::printf (issue #724)
- reduces some ambiguity and clarifies the expected output and behaviour. STYLE: reduce some automatic conversions of char to string
This commit is contained in:
@ -312,7 +312,7 @@ bool Foam::sampledTriSurfaceMesh::update(const meshSearch& meshSearcher)
|
||||
patchi,
|
||||
(
|
||||
patches[patchi].name().empty()
|
||||
? Foam::name("patch%d", patchi)
|
||||
? word::printf("patch%d", patchi)
|
||||
: patches[patchi].name()
|
||||
)
|
||||
);
|
||||
@ -345,7 +345,7 @@ bool Foam::sampledTriSurfaceMesh::update(const meshSearch& meshSearcher)
|
||||
zoneNames.set
|
||||
(
|
||||
regionid,
|
||||
Foam::name("patch%d", regionid)
|
||||
word::printf("patch%d", regionid)
|
||||
);
|
||||
}
|
||||
|
||||
@ -393,7 +393,7 @@ bool Foam::sampledTriSurfaceMesh::update(const meshSearch& meshSearcher)
|
||||
}
|
||||
if (name.empty())
|
||||
{
|
||||
name = ::Foam::name("patch%d", regionid);
|
||||
name = word::printf("patch%d", regionid);
|
||||
}
|
||||
|
||||
zoneLst[zoneI] = surfZone
|
||||
|
||||
@ -306,7 +306,7 @@ bool Foam::discreteSurface::update(const meshSearch& meshSearcher)
|
||||
patchi,
|
||||
(
|
||||
patches[patchi].name().empty()
|
||||
? Foam::name("patch%d", patchi)
|
||||
? word::printf("patch%d", patchi)
|
||||
: patches[patchi].name()
|
||||
)
|
||||
);
|
||||
@ -339,7 +339,7 @@ bool Foam::discreteSurface::update(const meshSearch& meshSearcher)
|
||||
zoneNames.set
|
||||
(
|
||||
regionid,
|
||||
Foam::name("patch%d", regionid)
|
||||
word::printf("patch%d", regionid)
|
||||
);
|
||||
}
|
||||
|
||||
@ -387,7 +387,7 @@ bool Foam::discreteSurface::update(const meshSearch& meshSearcher)
|
||||
}
|
||||
if (name.empty())
|
||||
{
|
||||
name = ::Foam::name("patch%d", regionid);
|
||||
name = word::printf("patch%d", regionid);
|
||||
}
|
||||
|
||||
zoneLst[zoneI] = surfZone
|
||||
|
||||
Reference in New Issue
Block a user