mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: set readOpt(..), writeOpt(..) by parameter, not by assignment
STYLE: qualify format/version/compression with IOstreamOption not IOstream
STYLE: reduce number of lookups when scanning {fa,fv}Solution
STYLE: call IOobject::writeEndDivider as static
This commit is contained in:
@ -5059,7 +5059,7 @@ bool Foam::distributedTriSurfaceMesh::writeObject
|
||||
}
|
||||
|
||||
// Dictionary needs to be written in ascii - binary output not supported.
|
||||
streamOpt.format(IOstream::ASCII);
|
||||
streamOpt.format(IOstreamOption::ASCII);
|
||||
bool ok = dict_.writeObject(streamOpt, true);
|
||||
|
||||
if (debug)
|
||||
|
||||
@ -173,7 +173,7 @@ public:
|
||||
// Uses cached location() instead of calculated position()
|
||||
virtual void writePosition(Ostream& os) const
|
||||
{
|
||||
if (os.format() == IOstream::ASCII)
|
||||
if (os.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
os << location() << token::SPACE << cell();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user