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
{
os.beginBlock(kw);
writeEntries(os);
os.endBlock() << flush;
os.endBlock();
}
......@@ -205,7 +205,7 @@ void Foam::dictionary::write(Ostream& os, const bool subDict) const
if (subDict)
{
os.endBlock() << flush;
os.endBlock();
}
}
......
......@@ -530,7 +530,7 @@ writeEntry(const word& keyword, Ostream& os) const
{
os.beginBlock(keyword);
this->writeEntries(os);
os.endBlock() << flush;
os.endBlock();
os.check(FUNCTION_NAME);
}
......
......@@ -438,7 +438,7 @@ void Foam::plane::writeDict(Ostream& os) const
os.writeEntry("point", origin_);
os.writeEntry("normal", normal_);
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -284,7 +284,7 @@ void Foam::Function1Types::CSV<Type>::writeData(Ostream& os) const
os.writeEntry("mergeSeparators", mergeSeparators_);
os.writeEntry("file", fName_);
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -86,7 +86,7 @@ void Foam::Function1Types::Sine<Type>::writeData(Ostream& os) const
scale_->writeData(os);
level_->writeData(os);
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -89,7 +89,7 @@ void Foam::Function1Types::Square<Type>::writeData(Ostream& os) const
scale_->writeData(os);
level_->writeData(os);
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -87,7 +87,7 @@ void Foam::Function1Types::TableFile<Type>::writeData(Ostream& os) const
os.writeEntry("file", fName_);
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -293,7 +293,7 @@ void Foam::ensightPartCells::writeSummary(Ostream& os) const
os.writeEntry("name", name());
os.writeEntry("size", size());
os.endBlock() << flush;
os.endBlock();
}
......@@ -322,7 +322,7 @@ void Foam::ensightPartCells::dumpInfo(Ostream& os) const
os << ')' << endEntry;
}
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -257,7 +257,7 @@ void Foam::ensightPartFaces::writeSummary(Ostream& os) const
os.writeEntry("start", start_);
os.writeEntry("size", size());
os.endBlock() << flush;
os.endBlock();
}
......@@ -287,7 +287,7 @@ void Foam::ensightPartFaces::dumpInfo(Ostream& os) const
os << ')' << endEntry;
}
os.endBlock() << flush;
os.endBlock();
}
......
......@@ -169,7 +169,7 @@ Foam::Ostream& Foam::functionObjects::operator<<
os.writeEntry("allowRestart", faItem.allowRestart_);
}
os.endBlock() << flush;
os.endBlock();
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