aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-06-21 11:51:29 +0200
committerGitHub <noreply@github.com>2017-06-21 11:51:29 +0200
commit1425c6def156840b359b90b4f32b9c7b8f005731 (patch)
tree0390ed5ad9bcf481416061446f859b3f48955422 /src/socket.h
parent12aad731adef495dec03f384d10b4f8f57b6a1d3 (diff)
downloadminetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.gz
minetest-1425c6def156840b359b90b4f32b9c7b8f005731.tar.bz2
minetest-1425c6def156840b359b90b4f32b9c7b8f005731.zip
Cpp11 initializers: last src root changeset (#6022)
* Cpp11 initializers: last src root changeset Finish to migrate all src root folder files to C++11 constructor initializers
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.h b/src/socket.h
index 8d1ad70ff..77ce31921 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -103,13 +103,13 @@ public:
void print(std::ostream *s) const;
std::string serializeString() const;
private:
- unsigned int m_addr_family;
+ unsigned int m_addr_family = 0;
union
{
struct sockaddr_in ipv4;
struct sockaddr_in6 ipv6;
} m_address;
- u16 m_port; // Port is separate from sockaddr structures
+ u16 m_port = 0; // Port is separate from sockaddr structures
};
class UDPSocket