Convert most 0/NULL pointers to nullptr

Courtesy of llvm cpp11-migrate 3.3
This commit is contained in:
Nils Maier 2013-08-20 18:57:17 +02:00
parent 9da17424c6
commit d8f44ef4f6
87 changed files with 253 additions and 253 deletions

View file

@ -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);