🔨 clean up

This commit is contained in:
Niels Lohmann 2019-03-18 13:53:48 +01:00
parent 9fc093c9e0
commit 8d3f4f21bc
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
11 changed files with 432 additions and 512 deletions

View file

@ -279,10 +279,8 @@ class serializer
return;
}
default:
{
default: // LCOV_EXCL_LINE
assert(false); // LCOV_EXCL_LINE
}
}
}
@ -480,10 +478,8 @@ class serializer
break;
}
default:
{
default: // LCOV_EXCL_LINE
assert(false); // LCOV_EXCL_LINE
}
}
break;
}
@ -545,10 +541,8 @@ class serializer
break;
}
default:
{
default: // LCOV_EXCL_LINE
assert(false); // LCOV_EXCL_LINE
}
}
}
}
@ -755,7 +749,7 @@ class serializer
std::none_of(number_buffer.begin(), number_buffer.begin() + len + 1,
[](char c)
{
return (c == '.' or c == 'e');
return c == '.' or c == 'e';
});
if (value_is_int_like)