diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-19 14:25:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 14:25:35 +0200 |
commit | 7528986e4449febead9b18b6118f0b096f7cf800 (patch) | |
tree | 8e526c1403ba8d0689ab40a24165fc19d8a07e27 /src/socket.h | |
parent | 1992db1395d9c068327a7c08bac7a24ef7112274 (diff) | |
download | minetest-7528986e4449febead9b18b6118f0b096f7cf800.tar.gz minetest-7528986e4449febead9b18b6118f0b096f7cf800.tar.bz2 minetest-7528986e4449febead9b18b6118f0b096f7cf800.zip |
Code modernization: src/p*, src/q*, src/r*, src/s* (partial) (#6282)
* Code modernization: src/p*, src/q*, src/r*, src/s* (partial)
* empty function
* default constructor/destructor
* for range-based loops
* use emplace_back instead of push_back
* C++ STL header style
* Spelling: vertice -> vertex
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/socket.h b/src/socket.h index 489818123..2264679ed 100644 --- a/src/socket.h +++ b/src/socket.h @@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #endif #include <ostream> -#include <string.h> +#include <cstring> #include "irrlichttypes.h" #include "exceptions.h" @@ -111,7 +111,8 @@ private: class UDPSocket { public: - UDPSocket() { } + UDPSocket() = default; + UDPSocket(bool ipv6); ~UDPSocket(); void Bind(Address addr); |