Kaydet (Commit) 2302e27d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
üst f9290d30
......@@ -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 );
}
......
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment