Restyle sources

This commit is contained in:
Vinnie Falco committed 2016-08-26 13:06:42 -04:00
1 parent 878c0f2a19
commit b607d47bd3
44 files changed
+173 -173

No files matched your search

+2 -2
View File
@@ -136,12 +136,12 @@ write(DynamicBuffer& db, frame_header const& fh)
if(fh.rsv3)
b[0] |= 0x10;
b[1] = fh.mask ? 0x80 : 0x00;
if (fh.len <= 125)
if(fh.len <= 125)
{
b[1] |= fh.len;
n = 2;
}
else if (fh.len <= 65535)
else if(fh.len <= 65535)
{
b[1] |= 126;
::new(&b[2]) big_uint16_buf_t{
@@ -131,7 +131,7 @@ utf8_checker_t<_>::write(BufferSequence const& bs)
{
using boost::asio::buffer_cast;
using boost::asio::buffer_size;
for (auto const& b : bs)
for(auto const& b : bs)
if(! write(buffer_cast<void const*>(b),
buffer_size(b)))
return false;
+1 -1
View File
@@ -101,7 +101,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, accept_op* op)
{
+1 -1
View File
@@ -97,7 +97,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, close_op* op)
{
@@ -93,7 +93,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, handshake_op* op)
{
+1 -1
View File
@@ -95,7 +95,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, ping_op* op)
{
@@ -117,7 +117,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, read_frame_op* op)
{
@@ -252,7 +252,7 @@ operator()(error_code ec,std::size_t bytes_transferred, bool again)
break;
}
d.state = do_read_fh + 2;
if (n == 0)
if(n == 0)
{
bytes_transferred = 0;
break;
+1 -1
View File
@@ -88,7 +88,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, read_op* op)
{
+1 -1
View File
@@ -93,7 +93,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, response_op* op)
{
+1 -1
View File
@@ -93,7 +93,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f,
teardown_ssl_op* op)
+1 -1
View File
@@ -80,7 +80,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f,
teardown_tcp_op* op)
@@ -134,7 +134,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, write_frame_op* op)
{
+1 -1
View File
@@ -91,7 +91,7 @@ public:
return op->d_->cont;
}
template <class Function>
template<class Function>
friend
void asio_handler_invoke(Function&& f, write_op* op)
{