diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-16 22:51:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-17 17:55:19 +0100 |
commit | 05f742d28b3786f44781af5b069c05c16b84decd (patch) | |
tree | dacb340f99ad4e47d20557eee04e6f69f5d15721 /comphelper/source/streaming | |
parent | faced6b5f72b096800a232749cce6b38a76d5bac (diff) |
comphelper: sal_Bool -> bool
Change-Id: I6fc331ae0706f4bb193543011c8d4ae0a385fcc0
Diffstat (limited to 'comphelper/source/streaming')
-rw-r--r-- | comphelper/source/streaming/basicio.cxx | 4 | ||||
-rw-r--r-- | comphelper/source/streaming/seqinputstreamserv.cxx | 6 | ||||
-rw-r--r-- | comphelper/source/streaming/seqstream.cxx | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/streaming/basicio.cxx b/comphelper/source/streaming/basicio.cxx index 8a683a738570..ff68422ff94b 100644 --- a/comphelper/source/streaming/basicio.cxx +++ b/comphelper/source/streaming/basicio.cxx @@ -75,14 +75,14 @@ const staruno::Reference<stario::XObjectInputStream>& operator >> ( } //------------------------------------------------------------------------------ -const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, sal_Bool& _rVal) +const staruno::Reference<stario::XObjectInputStream>& operator >> (const staruno::Reference<stario::XObjectInputStream>& _rxInStream, bool& _rVal) { _rVal = _rxInStream->readBoolean(); return _rxInStream; } //------------------------------------------------------------------------------ -const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, sal_Bool _bVal) +const staruno::Reference<stario::XObjectOutputStream>& operator << (const staruno::Reference<stario::XObjectOutputStream>& _rxOutStream, bool _bVal) { _rxOutStream->writeBoolean(_bVal); return _rxOutStream; diff --git a/comphelper/source/streaming/seqinputstreamserv.cxx b/comphelper/source/streaming/seqinputstreamserv.cxx index 22986e58767e..80c07a51b809 100644 --- a/comphelper/source/streaming/seqinputstreamserv.cxx +++ b/comphelper/source/streaming/seqinputstreamserv.cxx @@ -81,13 +81,13 @@ private: ::osl::Mutex m_aMutex; - sal_Bool m_bInitialized; + bool m_bInitialized; uno::Reference< io::XInputStream > m_xInputStream; uno::Reference< io::XSeekable > m_xSeekable; }; SequenceInputStreamService::SequenceInputStreamService() -: m_bInitialized( sal_False ) +: m_bInitialized( false ) {} // com.sun.star.uno.XServiceInfo: @@ -221,7 +221,7 @@ void SAL_CALL SequenceInputStreamService::initialize( const uno::Sequence< ::com uno::Reference< io::XSeekable > xSeekable( xInputStream, uno::UNO_QUERY_THROW ); m_xInputStream = xInputStream; m_xSeekable = xSeekable; - m_bInitialized = sal_True; + m_bInitialized = true; } else throw lang::IllegalArgumentException( OUString("Unexpected type of argument!\n"), diff --git a/comphelper/source/streaming/seqstream.cxx b/comphelper/source/streaming/seqstream.cxx index 1348f7ecba8c..f3395d191fef 100644 --- a/comphelper/source/streaming/seqstream.cxx +++ b/comphelper/source/streaming/seqstream.cxx @@ -143,7 +143,7 @@ OSequenceOutputStream::OSequenceOutputStream(Sequence< sal_Int8 >& _rSeq, double ,m_nMinimumResize(_nMinimumResize) ,m_nMaximumResize(_nMaximumResize) ,m_nSize(0) // starting at position 0 - ,m_bConnected(sal_True) + ,m_bConnected(true) { OSL_ENSURE(m_nResizeFactor > 1, "OSequenceOutputStream::OSequenceOutputStream : invalid resize factor !"); OSL_ENSURE((m_nMaximumResize < 0) || (m_nMaximumResize > m_nMinimumResize), @@ -228,7 +228,7 @@ void SAL_CALL OSequenceOutputStream::closeOutput( ) throw(NotConnectedException // cut the sequence to the real size m_rSequence.realloc(m_nSize); // and don't allow any further accesses - m_bConnected = sal_False; + m_bConnected = false; } } // namespace comphelper |