Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Jul 25, 2017
1 parent d1345dd commit 2a9f54d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/uvw/pipe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace uvw {
class PipeHandle final: public StreamHandle<PipeHandle, uv_pipe_t> {
public:
explicit PipeHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref, bool pass = false)
: StreamHandle{std::move(ca), std::move(ref)}, ipc{pass}
: StreamHandle{ca, std::move(ref)}, ipc{pass}
{}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/uvw/poll.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ class PollHandle final: public Handle<PollHandle, uv_poll_t> {
using Event = details::UVPollEvent;

explicit PollHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref, int desc)
: Handle{std::move(ca), std::move(ref)}, tag{FD}, fd{desc}
: Handle{ca, std::move(ref)}, tag{FD}, fd{desc}
{}

explicit PollHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref, OSSocketHandle sock)
: Handle{std::move(ca), std::move(ref)}, tag{SOCKET}, socket{sock}
: Handle{ca, std::move(ref)}, tag{SOCKET}, socket{sock}
{}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/uvw/process.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ProcessHandle final: public Handle<ProcessHandle, uv_process_t> {
using StdIO = details::UVStdIOFlags;

ProcessHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref)
: Handle{std::move(ca), std::move(ref)}, poFdStdio{1}
: Handle{ca, std::move(ref)}, poFdStdio{1}
{
// stdin container default initialization
poFdStdio[0].flags = static_cast<uv_stdio_flags>(StdIO::IGNORE_STREAM);
Expand Down
2 changes: 1 addition & 1 deletion src/uvw/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class WriteReq final: public Request<WriteReq, uv_write_t> {
using Deleter = void(*)(char *);

WriteReq(ConstructorAccess ca, std::shared_ptr<Loop> loop, std::unique_ptr<char[], Deleter> dt, unsigned int len)
: Request<WriteReq, uv_write_t>{std::move(ca), std::move(loop)},
: Request<WriteReq, uv_write_t>{ca, std::move(loop)},
data{std::move(dt)},
buf{uv_buf_init(data.get(), len)}
{}
Expand Down
2 changes: 1 addition & 1 deletion src/uvw/tcp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class TcpHandle final: public StreamHandle<TcpHandle, uv_tcp_t> {
using StreamHandle::StreamHandle;

explicit TcpHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref, unsigned int f)
: StreamHandle{std::move(ca), std::move(ref)}, tag{FLAGS}, flags{f}
: StreamHandle{ca, std::move(ref)}, tag{FLAGS}, flags{f}
{}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/uvw/tty.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TTYHandle final: public StreamHandle<TTYHandle, uv_tty_t> {
using Mode = details::UVTTYModeT;

explicit TTYHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref, FileHandle desc, bool readable)
: StreamHandle{std::move(ca), std::move(ref)},
: StreamHandle{ca, std::move(ref)},
memo{resetModeMemo()},
fd{desc},
rw{readable}
Expand Down
4 changes: 2 additions & 2 deletions src/uvw/udp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SendReq final: public Request<SendReq, uv_udp_send_t> {
using Deleter = void(*)(char *);

SendReq(ConstructorAccess ca, std::shared_ptr<Loop> loop, std::unique_ptr<char[], Deleter> dt, unsigned int len)
: Request<SendReq, uv_udp_send_t>{std::move(ca), std::move(loop)},
: Request<SendReq, uv_udp_send_t>{ca, std::move(loop)},
data{std::move(dt)},
buf{uv_buf_init(data.get(), len)}
{}
Expand Down Expand Up @@ -128,7 +128,7 @@ class UDPHandle final: public Handle<UDPHandle, uv_udp_t> {
using Handle::Handle;

explicit UDPHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref, unsigned int f)
: Handle{std::move(ca), std::move(ref)}, tag{FLAGS}, flags{f}
: Handle{ca, std::move(ref)}, tag{FLAGS}, flags{f}
{}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/uvw/work.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class WorkReq final: public Request<WorkReq, uv_work_t> {
using Task = InternalTask;

explicit WorkReq(ConstructorAccess ca, std::shared_ptr<Loop> ref, InternalTask t)
: Request{std::move(ca), std::move(ref)}, task{t}
: Request{ca, std::move(ref)}, task{t}
{}

/**
Expand Down

0 comments on commit 2a9f54d

Please sign in to comment.