forked from boostorg/beast
Tidying
This commit is contained in:
1 parent
98aed8ed49
commit
44d9eaba4d
6 files changed
+14
-14
No files matched your search
@@ -107,7 +107,7 @@ public:
|
||||
std::thread t_;
|
||||
|
||||
void
|
||||
fail(error_code ec, string_view what)
|
||||
fail(error_code const& ec, string_view what)
|
||||
{
|
||||
if(ec != net::error::operation_aborted)
|
||||
log_ << what << ": " << ec.message() << "\n";
|
||||
@@ -221,19 +221,19 @@ public:
|
||||
|
||||
protected:
|
||||
void
|
||||
on_read(error_code ec)
|
||||
on_read(error_code const& ec)
|
||||
{
|
||||
boost::ignore_unused(ec);
|
||||
}
|
||||
|
||||
void
|
||||
on_write(error_code, std::size_t)
|
||||
on_write(error_code const& , std::size_t)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
void
|
||||
on_accept(error_code ec)
|
||||
on_accept(error_code const& ec)
|
||||
{
|
||||
if(! acceptor_.is_open())
|
||||
return;
|
||||
@@ -410,7 +410,7 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
operator()(error_code ec, std::size_t n)
|
||||
operator()(error_code const& ec, std::size_t n)
|
||||
{
|
||||
BEAST_EXPECTS(ec == ec_, ec.message());
|
||||
BEAST_EXPECT(n == n_);
|
||||
|
||||
@@ -33,7 +33,7 @@ public:
|
||||
testDefaultIterators()
|
||||
{
|
||||
// default ctor is one past the end
|
||||
char c[2];
|
||||
char c[2] = {};
|
||||
auto bs = buffers_cat(
|
||||
net::const_buffer(&c[0], 1),
|
||||
net::const_buffer(&c[1], 1));
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
try
|
||||
{
|
||||
it = {};
|
||||
*it;
|
||||
(void)*it;
|
||||
fail();
|
||||
}
|
||||
catch(std::logic_error const&)
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
checkException(
|
||||
[]
|
||||
{
|
||||
*(type::const_iterator{});
|
||||
(void)*(type::const_iterator{});
|
||||
});
|
||||
|
||||
// Incrementing a default-constructed iterator
|
||||
|
||||
@@ -47,7 +47,7 @@ struct span_body_test
|
||||
BEAST_EXPECT(! buf->second);
|
||||
}
|
||||
{
|
||||
char buf[5];
|
||||
char buf[5] = {};
|
||||
using B = span_body<char>;
|
||||
request<B> req;
|
||||
req.body() = span<char>{buf, sizeof(buf)};
|
||||
|
||||
Reference in new issue
Block a user