From 6f16c6774cad7321b86a08e6af8c61fcba2bec0a Mon Sep 17 00:00:00 2001 From: Mark Olesen <Mark.Olesen@esi-group.com> Date: Mon, 10 Sep 2018 14:27:35 +0200 Subject: [PATCH] STYLE: make volumeType input operator symmetric with output (issue #994) - uses int, without enclosing brackets. --- src/OpenFOAM/algorithms/indexedOctree/volumeType.C | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/OpenFOAM/algorithms/indexedOctree/volumeType.C b/src/OpenFOAM/algorithms/indexedOctree/volumeType.C index 6fbc4dcc0a5..bc6040423c2 100644 --- a/src/OpenFOAM/algorithms/indexedOctree/volumeType.C +++ b/src/OpenFOAM/algorithms/indexedOctree/volumeType.C @@ -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; } -- GitLab