STYLE: make volumeType input operator symmetric with output (issue #994)

- uses int, without enclosing brackets.
This commit is contained in:
Mark Olesen
2018-09-10 14:27:35 +02:00
parent 4ec73897d3
commit 6f16c6774c

View File

@ -66,18 +66,11 @@ const Foam::word& Foam::volumeType::str() const
Foam::Istream& Foam::operator>>(Istream& is, volumeType& vt) Foam::Istream& Foam::operator>>(Istream& is, volumeType& vt)
{ {
// Read beginning of volumeType
is.readBegin("volumeType");
int val; int val;
is >> val; is >> val;
vt.t_ = static_cast<volumeType::type>(val); vt.t_ = static_cast<volumeType::type>(val);
// Read end of volumeType
is.readEnd("volumeType");
is.check(FUNCTION_NAME);
return is; return is;
} }