diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-21 12:10:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-22 08:49:43 +0200 |
commit | 760a7791a2d4d389d91dd35deb65dc72ff9d4f6a (patch) | |
tree | fa94616dc14437ae6fe2a1f4b837f9c06754ae20 /io | |
parent | e5ee29737edc08874ae854c459198aa4fba59dd8 (diff) |
loplugin:unusedfields in io
Change-Id: I8be28fa2ed1e005c76eafc60746620338c8a49ac
Reviewed-on: https://gerrit.libreoffice.org/40291
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acc_socket.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx index 8a9907bbc67e..6446c5fa14b6 100644 --- a/io/source/acceptor/acc_socket.cxx +++ b/io/source/acceptor/acc_socket.cxx @@ -86,7 +86,6 @@ namespace io_acceptor { void completeConnectionString(); ::osl::StreamSocket m_socket; - ::osl::SocketAddr m_addr; oslInterlockedCount m_nStatus; OUString m_sDescription; @@ -350,7 +349,9 @@ namespace io_acceptor { } pConn->completeConnectionString(); - OUString remoteHostname = pConn->m_addr.getHostname(); + ::osl::SocketAddr remoteAddr; + pConn->m_socket.getPeerAddr(remoteAddr); + OUString remoteHostname = remoteAddr.getHostname(); // we enable tcpNoDelay for loopback connections because // it can make a significant speed difference on linux boxes. if( m_bTcpNoDelay || remoteHostname == "localhost" || |