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
|
//- Write the standard end file divider
|
||||||
static Ostream& writeEndDivider(Ostream& os);
|
static Ostream& writeEndDivider(Ostream& os);
|
||||||
|
|
||||||
//- Write header with current type().
|
//- Write header with current type() and arch information
|
||||||
// Optionally without arch information when ASCII
|
bool writeHeader(Ostream& os) const;
|
||||||
bool writeHeader(Ostream& os, const bool noArchAscii=false) const;
|
|
||||||
|
|
||||||
//- Write header with override of type.
|
//- Write header with override of type and optionally without
|
||||||
// Optionally without arch information when ASCII
|
//- arch information in ASCII
|
||||||
bool writeHeader
|
bool writeHeader
|
||||||
(
|
(
|
||||||
Ostream& os,
|
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