From db9540f9d582481ec2dc559dd720e9ceab1374b3 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 2 Aug 2016 14:49:05 +0200 Subject: [PATCH] renaming --- src/uvw/udp.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() {