Skip to content
Snippets Groups Projects
Commit 0d06702f authored by Vasileios Karakasis's avatar Vasileios Karakasis
Browse files

Compacted a couple of statements.

parent b7e58f3d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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