Clear the error faster

This commit is contained in:
Vinnie Falco
2017-07-20 08:15:27 -07:00
parent fc09a4cad1
commit 4d393f4c2a
28 changed files with 117 additions and 116 deletions
+8 -8
View File
@@ -168,7 +168,7 @@ public:
on_request(verb, string_view,
string_view, int, error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
@@ -176,34 +176,34 @@ public:
string_view,
int, error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
on_field(field,
string_view, string_view, error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
on_header(error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
on_body(boost::optional<std::uint64_t> const&,
error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
on_data(string_view,
error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
@@ -211,13 +211,13 @@ public:
string_view,
error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
void
on_complete(error_code& ec)
{
ec = {};
ec.assign(0, ec.category());
}
};