Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
......@@ -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;
}
......
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