Skip to content
Snippets Groups Projects
Commit 0d6de94e authored by Mark OLESEN's avatar Mark OLESEN
Browse files

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
parent d770ce7a
No related branches found
No related tags found
No related merge requests found
...@@ -520,12 +520,11 @@ public: ...@@ -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 ...@@ -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());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment