Commit 6f16c677 authored by Mark Olesen's avatar Mark Olesen
Browse files

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

- uses int, without enclosing brackets.
parent 4ec73897
......@@ -66,18 +66,11 @@ const Foam::word& Foam::volumeType::str() const
Foam::Istream& Foam::operator>>(Istream& is, volumeType& vt)
{
// Read beginning of volumeType
is.readBegin("volumeType");
int val;
is >> val;
vt.t_ = static_cast<volumeType::type>(val);
// Read end of volumeType
is.readEnd("volumeType");
is.check(FUNCTION_NAME);
return is;
}
......
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