Clear error codes idiomatically

This commit is contained in:
Vinnie Falco
2019-01-20 09:50:43 -08:00
parent 9ea70bfbe5
commit 944b5dcda7
29 changed files with 118 additions and 112 deletions
+2 -2
View File
@@ -572,7 +572,7 @@ private:
// Transfer-Encoding, see if we can reserve the buffer.
//
// r_.reserve(content_length)
ec.assign(0, ec.category());
ec = {};
}
bool
@@ -625,7 +625,7 @@ private:
void
on_body(void const*, std::size_t, error_code& ec)
{
ec.assign(0, ec.category());
ec = {};
}
void