Clean up passing Boolean value to osl::Socket::setOption

Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
This commit is contained in:
Stephan Bergmann 2015-05-08 09:43:23 +02:00
parent f9290d3011
commit 2302e27d80
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}

View File

@ -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 );
}