Commit e5963771 authored by Mark Olesen's avatar Mark Olesen
Browse files

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

- a holdover from introducing the endBlock() method
parent 6a448016
...@@ -163,7 +163,7 @@ void Foam::dictionary::writeEntry(const keyType& kw, Ostream& os) const ...@@ -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 ...@@ -205,7 +205,7 @@ void Foam::dictionary::write(Ostream& os, const bool subDict) const
if (subDict) if (subDict)
{ {
os.endBlock() << flush; os.endBlock();
} }
} }
......
...@@ -530,7 +530,7 @@ writeEntry(const word& keyword, Ostream& os) const ...@@ -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);
} }
......
...@@ -438,7 +438,7 @@ void Foam::plane::writeDict(Ostream& os) const ...@@ -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();
} }
......
...@@ -284,7 +284,7 @@ void Foam::Function1Types::CSV<Type>::writeData(Ostream& os) const ...@@ -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();
} }
......
...@@ -86,7 +86,7 @@ void Foam::Function1Types::Sine<Type>::writeData(Ostream& os) const ...@@ -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();
} }
......
...@@ -89,7 +89,7 @@ void Foam::Function1Types::Square<Type>::writeData(Ostream& os) const ...@@ -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();
} }
......
...@@ -87,7 +87,7 @@ void Foam::Function1Types::TableFile<Type>::writeData(Ostream& os) const ...@@ -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();
} }
......
...@@ -293,7 +293,7 @@ void Foam::ensightPartCells::writeSummary(Ostream& os) const ...@@ -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 ...@@ -322,7 +322,7 @@ void Foam::ensightPartCells::dumpInfo(Ostream& os) const
os << ')' << endEntry; os << ')' << endEntry;
} }
os.endBlock() << flush; os.endBlock();
} }
......
...@@ -257,7 +257,7 @@ void Foam::ensightPartFaces::writeSummary(Ostream& os) const ...@@ -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 ...@@ -287,7 +287,7 @@ void Foam::ensightPartFaces::dumpInfo(Ostream& os) const
os << ')' << endEntry; os << ')' << endEntry;
} }
os.endBlock() << flush; os.endBlock();
} }
......
...@@ -169,7 +169,7 @@ Foam::Ostream& Foam::functionObjects::operator<< ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment