From 2302e27d80d8900d23452ae50a41276f43dfbc6c Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 May 2015 09:43:23 +0200 Subject: [PATCH] Clean up passing Boolean value to osl::Socket::setOption Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655 --- io/source/acceptor/acc_socket.cxx | 2 +- io/source/connector/connector.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx index bf6569189cef..a7eacebf1426 100644 --- a/io/source/acceptor/acc_socket.cxx +++ b/io/source/acceptor/acc_socket.cxx @@ -386,7 +386,7 @@ namespace io_acceptor { if( m_bTcpNoDelay || remoteHostname == "localhost" || remoteHostname.startsWith("127.0.0.") ) { - sal_Int32 nTcpNoDelay = sal_True; + sal_Int32 nTcpNoDelay = sal_Int32(true); pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay, sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp ); } diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index 9b9477ff869f..7d5d3c321d7b 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -136,7 +136,7 @@ namespace stoc_connector // it can make a significant speed difference on linux boxes. if( bTcpNoDelay || aHost == "localhost" || aHost.startsWith("127.0.0.") ) { - sal_Int32 nTcpNoDelay = sal_True; + sal_Int32 nTcpNoDelay = sal_Int32(true); pConn->m_socket.setOption( osl_Socket_OptionTcpNoDelay , &nTcpNoDelay, sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp ); }