mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use forAllIter, forAllConstIter instead of long-hand version
STYLE: use 'forAll(' NOT 'forAll (', as per coding guide
This commit is contained in:
@ -51,7 +51,7 @@ void Foam::gnuplotGraph::write(const graph& g, Ostream& os) const
|
||||
|
||||
bool firstField = true;
|
||||
|
||||
for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter)
|
||||
forAllConstIter(graph, g, iter)
|
||||
{
|
||||
if (!firstField)
|
||||
{
|
||||
@ -64,9 +64,9 @@ void Foam::gnuplotGraph::write(const graph& g, Ostream& os) const
|
||||
os << "; pause -1" << endl;
|
||||
|
||||
|
||||
for (graph::const_iterator iter = g.begin(); iter != g.end(); ++iter)
|
||||
forAllConstIter(graph, g, iter)
|
||||
{
|
||||
os << endl;
|
||||
os << endl;
|
||||
writeXY(g.x(), *iter(), os);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user