From d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50 Mon Sep 17 00:00:00 2001 From: Erik Schilling Date: Sat, 27 Apr 2013 21:42:58 +0200 Subject: Use nullptr instead of NULL everywhere --- src/net/connection.cpp | 4 ++-- src/net/connectionhandler.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/net') diff --git a/src/net/connection.cpp b/src/net/connection.cpp index 88c59f0..c54c0db 100644 --- a/src/net/connection.cpp +++ b/src/net/connection.cpp @@ -43,13 +43,13 @@ bool Connection::start(const std::string &address, int port) enetAddress.port = port; #if defined(ENET_VERSION) && ENET_VERSION >= ENET_CUTOFF - mLocal = enet_host_create(NULL /* create a client host */, + mLocal = enet_host_create(nullptr /* create a client host */, 1 /* allow one outgoing connection */, 0 /* unlimited channel count */, 0 /* assume any amount of incoming bandwidth */, 0 /* assume any amount of outgoing bandwidth */); #else - mLocal = enet_host_create(NULL /* create a client host */, + mLocal = enet_host_create(nullptr /* create a client host */, 1 /* allow one outgoing connection */, 0 /* assume any amount of incoming bandwidth */, 0 /* assume any amount of outgoing bandwidth */); diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp index d116aa9..f1bcf5f 100644 --- a/src/net/connectionhandler.cpp +++ b/src/net/connectionhandler.cpp @@ -145,7 +145,7 @@ void ConnectionHandler::process(enet_uint32 timeout) // Reset the peer's client information. computerDisconnected(comp); clients.erase(std::find(clients.begin(), clients.end(), comp)); - event.peer->data = NULL; + event.peer->data = nullptr; } break; default: break; -- cgit