Initialize mAddressFamily to satisfy cppcheck

pull/3530/head
Isaac Connor 2022-07-14 09:59:58 -04:00
parent 1bbb2ea3d5
commit ce589db5d0
1 changed files with 1 additions and 0 deletions

View File

@ -319,6 +319,7 @@ class Socket : public CommsBase {
class InetSocket : virtual public Socket {
public:
InetSocket() : mAddressFamily(AF_UNSPEC) {}
int getDomain() const override { return mAddressFamily; }
socklen_t getAddrSize() const override { return SockAddrInet::addrSize(); }