diff --git a/src/uvw/udp.hpp b/src/uvw/udp.hpp index bdee57c7..98fe0954 100644 --- a/src/uvw/udp.hpp +++ b/src/uvw/udp.hpp @@ -69,7 +69,7 @@ public: } -class UdpHandle final: public Handle { +class UDPHandle final: public Handle { using Handle::Handle; template @@ -77,7 +77,7 @@ class UdpHandle final: public Handle { typename details::IpTraits::Type *aptr = reinterpret_cast::Type *>(addr); int len = sizeof(*addr); - UdpHandle &udp = *(static_cast(handle->data)); + UDPHandle &udp = *(static_cast(handle->data)); // data will be destroyed no matter of what the value of nread is std::unique_ptr data{buf->base}; @@ -102,8 +102,8 @@ public: using IPv6 = details::IPv6; template - static std::shared_ptr create(Args&&... args) { - return std::shared_ptr{new UdpHandle{std::forward(args)...}}; + static std::shared_ptr create(Args&&... args) { + return std::shared_ptr{new UDPHandle{std::forward(args)...}}; } bool init() {