STYLE: avoid flush when dictionary {} closing (issue #1145)

- a holdover from introducing the endBlock() method
This commit is contained in:
Mark Olesen
2019-01-03 19:12:12 +01:00
parent 6a448016aa
commit e596377179
10 changed files with 13 additions and 13 deletions

View File

@ -163,7 +163,7 @@ void Foam::dictionary::writeEntry(const keyType& kw, Ostream& os) const
{ {
os.beginBlock(kw); os.beginBlock(kw);
writeEntries(os); writeEntries(os);
os.endBlock() << flush; os.endBlock();
} }
@ -205,7 +205,7 @@ void Foam::dictionary::write(Ostream& os, const bool subDict) const
if (subDict) if (subDict)
{ {
os.endBlock() << flush; os.endBlock();
} }
} }

View File

@ -530,7 +530,7 @@ writeEntry(const word& keyword, Ostream& os) const
{ {
os.beginBlock(keyword); os.beginBlock(keyword);
this->writeEntries(os); this->writeEntries(os);
os.endBlock() << flush; os.endBlock();
os.check(FUNCTION_NAME); os.check(FUNCTION_NAME);
} }

View File

@ -438,7 +438,7 @@ void Foam::plane::writeDict(Ostream& os) const
os.writeEntry("point", origin_); os.writeEntry("point", origin_);
os.writeEntry("normal", normal_); os.writeEntry("normal", normal_);
os.endBlock() << flush; os.endBlock();
} }

View File

@ -284,7 +284,7 @@ void Foam::Function1Types::CSV<Type>::writeData(Ostream& os) const
os.writeEntry("mergeSeparators", mergeSeparators_); os.writeEntry("mergeSeparators", mergeSeparators_);
os.writeEntry("file", fName_); os.writeEntry("file", fName_);
os.endBlock() << flush; os.endBlock();
} }

View File

@ -86,7 +86,7 @@ void Foam::Function1Types::Sine<Type>::writeData(Ostream& os) const
scale_->writeData(os); scale_->writeData(os);
level_->writeData(os); level_->writeData(os);
os.endBlock() << flush; os.endBlock();
} }

View File

@ -89,7 +89,7 @@ void Foam::Function1Types::Square<Type>::writeData(Ostream& os) const
scale_->writeData(os); scale_->writeData(os);
level_->writeData(os); level_->writeData(os);
os.endBlock() << flush; os.endBlock();
} }

View File

@ -87,7 +87,7 @@ void Foam::Function1Types::TableFile<Type>::writeData(Ostream& os) const
os.writeEntry("file", fName_); os.writeEntry("file", fName_);
os.endBlock() << flush; os.endBlock();
} }

View File

@ -293,7 +293,7 @@ void Foam::ensightPartCells::writeSummary(Ostream& os) const
os.writeEntry("name", name()); os.writeEntry("name", name());
os.writeEntry("size", size()); os.writeEntry("size", size());
os.endBlock() << flush; os.endBlock();
} }
@ -322,7 +322,7 @@ void Foam::ensightPartCells::dumpInfo(Ostream& os) const
os << ')' << endEntry; os << ')' << endEntry;
} }
os.endBlock() << flush; os.endBlock();
} }

View File

@ -257,7 +257,7 @@ void Foam::ensightPartFaces::writeSummary(Ostream& os) const
os.writeEntry("start", start_); os.writeEntry("start", start_);
os.writeEntry("size", size()); os.writeEntry("size", size());
os.endBlock() << flush; os.endBlock();
} }
@ -287,7 +287,7 @@ void Foam::ensightPartFaces::dumpInfo(Ostream& os) const
os << ')' << endEntry; os << ')' << endEntry;
} }
os.endBlock() << flush; os.endBlock();
} }

View File

@ -169,7 +169,7 @@ Foam::Ostream& Foam::functionObjects::operator<<
os.writeEntry("allowRestart", faItem.allowRestart_); os.writeEntry("allowRestart", faItem.allowRestart_);
} }
os.endBlock() << flush; os.endBlock();
os.check(FUNCTION_NAME); os.check(FUNCTION_NAME);