[Libreoffice-commits] core.git: compilerplugins/clang io/source
Noel Grandin
noel.grandin at collabora.co.uk
Sat Jul 22 06:50:35 UTC 2017
compilerplugins/clang/unusedfields.readonly.results | 2 --
io/source/acceptor/acc_socket.cxx | 5 +++--
2 files changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 760a7791a2d4d389d91dd35deb65dc72ff9d4f6a
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date: Fri Jul 21 12:10:41 2017 +0200
loplugin:unusedfields in io
Change-Id: I8be28fa2ed1e005c76eafc60746620338c8a49ac
Reviewed-on: https://gerrit.libreoffice.org/40291
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/compilerplugins/clang/unusedfields.readonly.results b/compilerplugins/clang/unusedfields.readonly.results
index 9e3625eabb2a..1fb3f0f431cd 100644
--- a/compilerplugins/clang/unusedfields.readonly.results
+++ b/compilerplugins/clang/unusedfields.readonly.results
@@ -674,8 +674,6 @@ include/vcl/opengl/OpenGLContext.hxx:57
OpenGLCapabilitySwitch mbLimitedShaderRegisters _Bool
include/xmloff/nmspmap.hxx:70
SvXMLNamespaceMap sEmpty const class rtl::OUString
-io/source/acceptor/acc_socket.cxx:89
- io_acceptor::SocketConnection m_addr ::osl::SocketAddr
jvmfwk/plugins/sunmajor/pluginlib/util.cxx:251
jfw_plugin::FileHandleReader m_aBuffer sal_Char [1024]
libreofficekit/qa/gtktiledviewer/gtv-application-window.hxx:50
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" ||
More information about the Libreoffice-commits
mailing list