mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: fix worst spacing violations for 'os <<' constructions
- accept some violations of the coding guidelines though - perhaps adding a style exception would be simpler.
This commit is contained in:
@ -59,7 +59,7 @@ public:
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const ent& e)
|
||||
{
|
||||
os << e.keyword_ << ' ' << e.i_ << endl;
|
||||
os << e.keyword_ << ' ' << e.i_ << endl;
|
||||
return os;
|
||||
}
|
||||
};
|
||||
@ -88,7 +88,7 @@ public:
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const Scalar& val)
|
||||
{
|
||||
os << val.data_;
|
||||
os << val.data_;
|
||||
return os;
|
||||
}
|
||||
};
|
||||
|
||||
@ -38,7 +38,7 @@ public:
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Vector<C>& v)
|
||||
{
|
||||
os << v.X << '\t' << v.Y << '\n';
|
||||
os << v.X << '\t' << v.Y << '\n';
|
||||
return os;
|
||||
}
|
||||
};
|
||||
|
||||
@ -89,7 +89,7 @@ int main()
|
||||
|
||||
{
|
||||
OStringStream os;
|
||||
os << table1;
|
||||
os << table1;
|
||||
HASHTABLE_CLASS<double> readTable(IStringStream(os.str())(), 100);
|
||||
|
||||
Info<< "Istream constructor:" << readTable << endl;
|
||||
|
||||
@ -54,7 +54,7 @@ public:
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const Scalar& s)
|
||||
{
|
||||
os << s.data_;
|
||||
os << s.data_;
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
@ -60,7 +60,7 @@ public:
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const Scalar& val)
|
||||
{
|
||||
os << val.data_;
|
||||
os << val.data_;
|
||||
return os;
|
||||
}
|
||||
};
|
||||
|
||||
@ -83,7 +83,7 @@ int main()
|
||||
|
||||
{
|
||||
OStringStream os;
|
||||
os << table1;
|
||||
os << table1;
|
||||
HASHTABLE_CLASS<double> readTable(IStringStream(os.str())(), 100);
|
||||
|
||||
Info<< "Istream constructor:" << readTable << endl;
|
||||
|
||||
@ -56,7 +56,7 @@ public:
|
||||
|
||||
friend Ostream& operator<<(Ostream& os, const ent& e)
|
||||
{
|
||||
os << e.keyword_ << ' ' << e.i_ << endl;
|
||||
os << e.keyword_ << ' ' << e.i_ << endl;
|
||||
return os;
|
||||
}
|
||||
};
|
||||
|
||||
@ -47,8 +47,7 @@ void writeObj(Ostream& os,const pointField& points)
|
||||
{
|
||||
const point& pt = points[pointI];
|
||||
|
||||
os << "v " << pt.x() << ' ' << pt.y()
|
||||
<< ' ' << pt.z() << endl;
|
||||
os << "v " << pt.x() << ' ' << pt.y() << ' ' << pt.z() << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -92,14 +92,14 @@ int main(int argc, char * argv[])
|
||||
{
|
||||
OSHA1stream os;
|
||||
|
||||
os << str;
|
||||
os << str;
|
||||
Info<< os.digest() << endl;
|
||||
|
||||
os << str;
|
||||
os << str;
|
||||
Info<< os.digest() << endl;
|
||||
|
||||
os.rewind();
|
||||
os << "The quick brown fox jumps over the lazy dog";
|
||||
os << "The quick brown fox jumps over the lazy dog";
|
||||
Info<< os.digest() << endl;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user