From 0d06702f984cc908e99682ecaeac01a309d221cc Mon Sep 17 00:00:00 2001 From: Vasileios Karakasis <karakasis@cscs.ch> Date: Thu, 21 Jan 2016 16:16:14 +0100 Subject: [PATCH] Compacted a couple of statements. --- swcio.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/swcio.hpp b/swcio.hpp index b32d5e9e..d362109d 100644 --- a/swcio.hpp +++ b/swcio.hpp @@ -194,8 +194,7 @@ private: T parse_value_strict(std::istream &is) { T val; - is >> val; - check_parse_status(is); + check_parse_status(is >> val); // everything's fine return val; @@ -215,8 +214,7 @@ template<> cell_record::kind swc_parser::parse_value_strict(std::istream &is) { int val; - is >> val; - check_parse_status(is); + check_parse_status(is >> val); // Let cell_record's constructor check for the type validity return static_cast<cell_record::kind>(val); -- GitLab