mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
Convert most 0/NULL pointers to nullptr
Courtesy of llvm cpp11-migrate 3.3
This commit is contained in:
parent
9da17424c6
commit
d8f44ef4f6
87 changed files with 253 additions and 253 deletions
|
@ -87,7 +87,7 @@ void SocketCoreTest::testInetNtop()
|
|||
{
|
||||
std::string s = "192.168.0.1";
|
||||
addrinfo* res;
|
||||
CPPUNIT_ASSERT_EQUAL(0, callGetaddrinfo(&res, s.c_str(), 0, AF_INET,
|
||||
CPPUNIT_ASSERT_EQUAL(0, callGetaddrinfo(&res, s.c_str(), nullptr, AF_INET,
|
||||
SOCK_STREAM, 0, 0));
|
||||
std::unique_ptr<addrinfo, decltype(&freeaddrinfo)> resDeleter
|
||||
(res, freeaddrinfo);
|
||||
|
@ -100,7 +100,7 @@ void SocketCoreTest::testInetNtop()
|
|||
{
|
||||
std::string s = "2001:db8::2:1";
|
||||
addrinfo* res;
|
||||
CPPUNIT_ASSERT_EQUAL(0, callGetaddrinfo(&res, s.c_str(), 0, AF_INET6,
|
||||
CPPUNIT_ASSERT_EQUAL(0, callGetaddrinfo(&res, s.c_str(), nullptr, AF_INET6,
|
||||
SOCK_STREAM, 0, 0));
|
||||
std::unique_ptr<addrinfo, decltype(&freeaddrinfo)> resDeleter
|
||||
(res, freeaddrinfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue