From aea1683c12f4771757d60a6f4afa5e9ab9af33d0 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Mon, 8 Aug 2016 12:52:37 -0700 Subject: [PATCH] std::unqiue_ptr<..., decltype(&fn)> seems to be the preferred idiom. This is the only decltype(fn)* outside aapt2 in the whole tree. Change-Id: I2e19d2031b56fdb808c62c2c07ca6080c9ec6fe3 --- adb/sysdeps_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/sysdeps_win32.cpp b/adb/sysdeps_win32.cpp index ee2740690..109a5486c 100644 --- a/adb/sysdeps_win32.cpp +++ b/adb/sysdeps_win32.cpp @@ -952,7 +952,7 @@ int network_connect(const std::string& host, int port, int type, int timeout, st _socket_set_errno(err); return -1; } - std::unique_ptr addrinfo(addrinfo_ptr, freeaddrinfo); + std::unique_ptr addrinfo(addrinfo_ptr, freeaddrinfo); addrinfo_ptr = nullptr; // TODO: Try all the addresses if there's more than one? This just uses