diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 09:43:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-08 09:49:03 +0200 |
commit | 2302e27d80d8900d23452ae50a41276f43dfbc6c (patch) | |
tree | 2c6a5080a1ba4b0787ababb6693d6368eb232fbc /io | |
parent | f9290d301144744df879cea907584656b7f74ad1 (diff) |
Clean up passing Boolean value to osl::Socket::setOption
Change-Id: I6757f2bc7e8b4ff9d7b3ebda88da35a5d7b93655
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acc_socket.cxx | 2 | ||||
-rw-r--r-- | 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 ); } |