summaryrefslogtreecommitdiff
path: root/io/source/acceptor/acc_socket.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-22 12:52:39 +0200
committerNoel Grandin <noel@peralex.com>2014-04-23 11:11:49 +0200
commit1f2a47a6d39be654847c2bdde7605e08ad2fb78a (patch)
tree92ea9da2d9147091594302fe86128b36221a9ce4 /io/source/acceptor/acc_socket.cxx
parente4f690b0389263c35f83fa8b58382c6518d00f62 (diff)
io: sal_Bool->bool
Change-Id: I136c98cbe15d1c6629028392a9573066320b3a04
Diffstat (limited to 'io/source/acceptor/acc_socket.cxx')
-rw-r--r--io/source/acceptor/acc_socket.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index 82ec366d40c4..9146757a4ef8 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -49,7 +49,7 @@ namespace io_acceptor {
template<class T>
struct ReferenceEqual
{
- sal_Bool operator () (const ::com::sun::star::uno::Reference<T> & op1,
+ bool operator () (const ::com::sun::star::uno::Reference<T> & op1,
const ::com::sun::star::uno::Reference<T> & op2) const
{
return op1.get() == op2.get();
@@ -103,14 +103,14 @@ namespace io_acceptor {
OUString m_sDescription;
::osl::Mutex _mutex;
- sal_Bool _started;
- sal_Bool _closed;
- sal_Bool _error;
+ bool _started;
+ bool _closed;
+ bool _error;
XStreamListener_hash_set _listeners;
};
template<class T>
- void notifyListeners(SocketConnection * pCon, sal_Bool * notified, T t)
+ void notifyListeners(SocketConnection * pCon, bool * notified, T t)
{
XStreamListener_hash_set listeners;
@@ -118,7 +118,7 @@ namespace io_acceptor {
::osl::MutexGuard guard(pCon->_mutex);
if(!*notified)
{
- *notified = sal_True;
+ *notified = true;
listeners = pCon->_listeners;
}
}
@@ -158,9 +158,9 @@ namespace io_acceptor {
SocketConnection::SocketConnection( const OUString &sConnectionDescription) :
m_nStatus( 0 ),
m_sDescription( sConnectionDescription ),
- _started(sal_False),
- _closed(sal_False),
- _error(sal_False)
+ _started(false),
+ _closed(false),
+ _error(false)
{
// make it unique
m_sDescription += ",uniqueValue=" ;
@@ -317,13 +317,13 @@ namespace io_acceptor {
SocketAcceptor::SocketAcceptor( const OUString &sSocketName,
sal_uInt16 nPort,
- sal_Bool bTcpNoDelay,
+ bool bTcpNoDelay,
const OUString &sConnectionDescription) :
m_sSocketName( sSocketName ),
m_sConnectionDescription( sConnectionDescription ),
m_nPort( nPort ),
m_bTcpNoDelay( bTcpNoDelay ),
- m_bClosed( sal_False )
+ m_bClosed( false )
{
}
@@ -396,7 +396,7 @@ namespace io_acceptor {
void SocketAcceptor::stopAccepting()
{
- m_bClosed = sal_True;
+ m_bClosed = true;
m_socket.close();
}
}