diff --git a/src/uvw/lib.hpp b/src/uvw/lib.hpp index df49bb88..8d7d0765 100644 --- a/src/uvw/lib.hpp +++ b/src/uvw/lib.hpp @@ -28,7 +28,7 @@ public: * @return A pointer to the newly created handle. */ explicit SharedLib(ConstructorAccess ca, std::shared_ptr ref, std::string filename) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { opened = (0 == uv_dlopen(filename.data(), get())); } diff --git a/src/uvw/pipe.hpp b/src/uvw/pipe.hpp index 40f43c03..4a2fd816 100644 --- a/src/uvw/pipe.hpp +++ b/src/uvw/pipe.hpp @@ -29,7 +29,7 @@ namespace uvw { class PipeHandle final: public StreamHandle { public: explicit PipeHandle(ConstructorAccess ca, std::shared_ptr ref, bool pass = false) - : StreamHandle{std::move(ca), std::move(ref)}, ipc{pass} + : StreamHandle{ca, std::move(ref)}, ipc{pass} {} /** diff --git a/src/uvw/poll.hpp b/src/uvw/poll.hpp index 9a9f88ca..966153db 100644 --- a/src/uvw/poll.hpp +++ b/src/uvw/poll.hpp @@ -75,11 +75,11 @@ public: using Event = details::UVPollEvent; explicit PollHandle(ConstructorAccess ca, std::shared_ptr 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 ref, OSSocketHandle sock) - : Handle{std::move(ca), std::move(ref)}, tag{SOCKET}, socket{sock} + : Handle{ca, std::move(ref)}, tag{SOCKET}, socket{sock} {} /** diff --git a/src/uvw/process.hpp b/src/uvw/process.hpp index 30af55d3..f19c94f3 100644 --- a/src/uvw/process.hpp +++ b/src/uvw/process.hpp @@ -72,7 +72,7 @@ public: using StdIO = details::UVStdIOFlags; ProcessHandle(ConstructorAccess ca, std::shared_ptr 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(StdIO::IGNORE_STREAM); diff --git a/src/uvw/resource.hpp b/src/uvw/resource.hpp index 4b6441e6..940ecde7 100644 --- a/src/uvw/resource.hpp +++ b/src/uvw/resource.hpp @@ -38,7 +38,7 @@ protected: public: explicit Resource(ConstructorAccess ca, std::shared_ptr ref) - : UnderlyingType{std::move(ca), std::move(ref)}, + : UnderlyingType{ca, std::move(ref)}, Emitter{}, std::enable_shared_from_this{} { diff --git a/src/uvw/stream.hpp b/src/uvw/stream.hpp index 2ca984b1..8cc504e9 100644 --- a/src/uvw/stream.hpp +++ b/src/uvw/stream.hpp @@ -97,7 +97,7 @@ public: using Deleter = void(*)(char *); WriteReq(ConstructorAccess ca, std::shared_ptr loop, std::unique_ptr dt, unsigned int len) - : Request{std::move(ca), std::move(loop)}, + : Request{ca, std::move(loop)}, data{std::move(dt)}, buf{uv_buf_init(data.get(), len)} {} @@ -156,7 +156,7 @@ class StreamHandle: public Handle { public: #ifdef _WIN32 StreamHandle(ConstructorAccess ca, std::shared_ptr ref) - : Handle{std::move(ca), std::move(ref)} + : Handle{ca, std::move(ref)} {} #else using Handle::Handle; diff --git a/src/uvw/tcp.hpp b/src/uvw/tcp.hpp index 1b1aa590..95ecb19c 100644 --- a/src/uvw/tcp.hpp +++ b/src/uvw/tcp.hpp @@ -52,7 +52,7 @@ public: using StreamHandle::StreamHandle; explicit TcpHandle(ConstructorAccess ca, std::shared_ptr ref, unsigned int f) - : StreamHandle{std::move(ca), std::move(ref)}, tag{FLAGS}, flags{f} + : StreamHandle{ca, std::move(ref)}, tag{FLAGS}, flags{f} {} /** diff --git a/src/uvw/thread.hpp b/src/uvw/thread.hpp index 24553d49..7223a5e8 100644 --- a/src/uvw/thread.hpp +++ b/src/uvw/thread.hpp @@ -36,7 +36,7 @@ public: using Type = uv_thread_t; explicit Thread(ConstructorAccess ca, std::shared_ptr ref, InternalTask t, std::shared_ptr d = nullptr) noexcept - : UnderlyingType{std::move(ca), std::move(ref)}, data{std::move(d)}, task{std::move(t)} + : UnderlyingType{ca, std::move(ref)}, data{std::move(d)}, task{std::move(t)} {} static Type self() noexcept { @@ -68,7 +68,7 @@ private: class ThreadLocalStorage final: public UnderlyingType { public: explicit ThreadLocalStorage(ConstructorAccess ca, std::shared_ptr ref) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { uv_key_create(UnderlyingType::get()); } @@ -114,7 +114,7 @@ class Mutex final: public UnderlyingType { public: explicit Mutex(ConstructorAccess ca, std::shared_ptr ref) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { uv_mutex_init(get()); } @@ -140,7 +140,7 @@ public: class RWLock final: public UnderlyingType { public: explicit RWLock(ConstructorAccess ca, std::shared_ptr ref) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { uv_rwlock_init(get()); } @@ -178,7 +178,7 @@ public: class Semaphore final: public UnderlyingType { public: explicit Semaphore(ConstructorAccess ca, std::shared_ptr ref, unsigned int value) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { uv_sem_init(get(), value); } @@ -204,7 +204,7 @@ public: class Condition final: public UnderlyingType { public: explicit Condition(ConstructorAccess ca, std::shared_ptr ref) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { uv_cond_init(get()); } @@ -234,7 +234,7 @@ public: class Barrier final: public UnderlyingType { public: explicit Barrier(ConstructorAccess ca, std::shared_ptr ref, unsigned int count) noexcept - : UnderlyingType{std::move(ca), std::move(ref)} + : UnderlyingType{ca, std::move(ref)} { uv_barrier_init(get(), count); } diff --git a/src/uvw/tty.hpp b/src/uvw/tty.hpp index 869955d2..4e4908f5 100644 --- a/src/uvw/tty.hpp +++ b/src/uvw/tty.hpp @@ -61,7 +61,7 @@ public: using Mode = details::UVTTYModeT; explicit TTYHandle(ConstructorAccess ca, std::shared_ptr ref, FileHandle desc, bool readable) - : StreamHandle{std::move(ca), std::move(ref)}, + : StreamHandle{ca, std::move(ref)}, memo{resetModeMemo()}, fd{desc}, rw{readable} diff --git a/src/uvw/udp.hpp b/src/uvw/udp.hpp index 91675241..88d48c90 100644 --- a/src/uvw/udp.hpp +++ b/src/uvw/udp.hpp @@ -62,7 +62,7 @@ public: using Deleter = void(*)(char *); SendReq(ConstructorAccess ca, std::shared_ptr loop, std::unique_ptr dt, unsigned int len) - : Request{std::move(ca), std::move(loop)}, + : Request{ca, std::move(loop)}, data{std::move(dt)}, buf{uv_buf_init(data.get(), len)} {} @@ -128,7 +128,7 @@ public: using Handle::Handle; explicit UDPHandle(ConstructorAccess ca, std::shared_ptr ref, unsigned int f) - : Handle{std::move(ca), std::move(ref)}, tag{FLAGS}, flags{f} + : Handle{ca, std::move(ref)}, tag{FLAGS}, flags{f} {} /** diff --git a/src/uvw/work.hpp b/src/uvw/work.hpp index 736c390e..f6cb4392 100644 --- a/src/uvw/work.hpp +++ b/src/uvw/work.hpp @@ -45,7 +45,7 @@ public: using Task = InternalTask; explicit WorkReq(ConstructorAccess ca, std::shared_ptr ref, InternalTask t) - : Request{std::move(ca), std::move(ref)}, task{t} + : Request{ca, std::move(ref)}, task{t} {} /**