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:
@ -199,7 +199,7 @@ bool Foam::CompactIOField<T, BaseType>::writeObject
|
||||
const bool valid
|
||||
) const
|
||||
{
|
||||
if (streamOpt.format() == IOstream::ASCII)
|
||||
if (streamOpt.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
// Change type to be non-compact format type
|
||||
const word oldTypeName(typeName);
|
||||
@ -282,8 +282,8 @@ Foam::Ostream& Foam::operator<<
|
||||
const Foam::CompactIOField<T, BaseType>& L
|
||||
)
|
||||
{
|
||||
// Keep ascii writing same.
|
||||
if (os.format() == IOstream::ASCII)
|
||||
// Keep ASCII writing same
|
||||
if (os.format() == IOstreamOption::ASCII)
|
||||
{
|
||||
os << static_cast<const Field<T>&>(L);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user