mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: ambiguity in IOobject::writeHeader
- a C-string is interpreted as a bool instead of as a word, so remove default parameter to eliminate ambiguity
This commit is contained in:
@ -520,12 +520,11 @@ public:
|
||||
//- Write the standard end file divider
|
||||
static Ostream& writeEndDivider(Ostream& os);
|
||||
|
||||
//- Write header with current type().
|
||||
// Optionally without arch information when ASCII
|
||||
bool writeHeader(Ostream& os, const bool noArchAscii=false) const;
|
||||
//- Write header with current type() and arch information
|
||||
bool writeHeader(Ostream& os) const;
|
||||
|
||||
//- Write header with override of type.
|
||||
// Optionally without arch information when ASCII
|
||||
//- Write header with override of type and optionally without
|
||||
//- arch information in ASCII
|
||||
bool writeHeader
|
||||
(
|
||||
Ostream& os,
|
||||
|
||||
@ -171,9 +171,9 @@ bool Foam::IOobject::writeHeader
|
||||
}
|
||||
|
||||
|
||||
bool Foam::IOobject::writeHeader(Ostream& os, const bool noArchAscii) const
|
||||
bool Foam::IOobject::writeHeader(Ostream& os) const
|
||||
{
|
||||
return writeHeader(os, type(), noArchAscii);
|
||||
return writeHeader(os, type());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user