mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: for Istream/Ostream check() use FUNCTION_NAME in messages
This commit is contained in:
@ -60,9 +60,7 @@ Foam::Istream& Foam::operator>>(Istream& is, string& s)
|
||||
return is;
|
||||
}
|
||||
|
||||
// Check state of Istream
|
||||
is.check("Istream& operator>>(Istream&, string&)");
|
||||
|
||||
is.check(FUNCTION_NAME);
|
||||
return is;
|
||||
}
|
||||
|
||||
@ -70,7 +68,7 @@ Foam::Istream& Foam::operator>>(Istream& is, string& s)
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const string& s)
|
||||
{
|
||||
os.write(s);
|
||||
os.check("Ostream& operator<<(Ostream&, const string&)");
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
@ -78,7 +76,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const string& s)
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const std::string& s)
|
||||
{
|
||||
os.write(string(s));
|
||||
os.check("Ostream& operator<<(Ostream&, const std::string&)");
|
||||
os.check(FUNCTION_NAME);
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user