STYLE: report read/write options as integers (see fb5940131e)

This commit is contained in:
Mark Olesen
2019-04-24 12:28:40 +02:00
committed by Andrew Heather
parent 4d215d8e0d
commit 391afe7854
2 changed files with 3 additions and 3 deletions

View File

@ -39,8 +39,8 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const InfoProxy<IOobject>& ip)
<< io.type() << token::SPACE
<< io.name()
<< " local: " << io.local()
<< " readOpt: " << static_cast<char>(io.readOpt())
<< " writeOpt: " << static_cast<char>(io.writeOpt())
<< " readOpt: " << static_cast<int>(io.readOpt())
<< " writeOpt: " << static_cast<int>(io.writeOpt())
<< " globalObject: " << io.globalObject()
<< token::SPACE << io.path() << endl;

View File

@ -487,7 +487,7 @@ bool Foam::objectRegistry::writeObject
<< name() << " : Considering writing object "
<< iter.key()
<< " of type " << iter->type()
<< " with writeOpt " << static_cast<char>(iter->writeOpt())
<< " with writeOpt " << static_cast<int>(iter->writeOpt())
<< " to file " << iter->objectPath()
<< endl;
}