summaryrefslogtreecommitdiffstats
path: root/src/net/connection.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-27 21:42:58 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-04-27 21:42:58 +0200
commitd4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50 (patch)
tree474ec7369f0d367d7780f73901d38d1daec4d2eb /src/net/connection.cpp
parent2c14cd30ecbacbd5a808cb2641d40f6d568ec294 (diff)
downloadmanaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.gz
manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.tar.xz
manaserv-d4f3105d9a879f27baad6e43b8b3cb6fe2f0ef50.zip
Use nullptr instead of NULL everywhere
Diffstat (limited to 'src/net/connection.cpp')
-rw-r--r--src/net/connection.cpp4
1 files changed, 2 insertions, 2 deletions
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 */);