diff options
Diffstat (limited to 'ucb/source/ucp/cmis/std_inputstream.cxx')
-rw-r--r-- | ucb/source/ucp/cmis/std_inputstream.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ucb/source/ucp/cmis/std_inputstream.cxx b/ucb/source/ucp/cmis/std_inputstream.cxx index 2130c3406995..d135d981e9e8 100644 --- a/ucb/source/ucp/cmis/std_inputstream.cxx +++ b/ucb/source/ucp/cmis/std_inputstream.cxx @@ -24,7 +24,7 @@ namespace cmis m_pStream( pStream ), m_nLength( 0 ) { - if ( m_pStream.get() ) + if (m_pStream) { streampos nInitPos = m_pStream->tellg( ); m_pStream->seekg( 0, ios_base::end ); @@ -65,7 +65,7 @@ namespace cmis if ( 0 <= nBytesToRead && aData.getLength() < nBytesToRead ) aData.realloc( nBytesToRead ); - if ( !m_pStream.get() ) + if (!m_pStream) throw io::IOException( ); sal_Int32 nRead = 0; @@ -91,7 +91,7 @@ namespace cmis if ( 0 <= nMaxBytesToRead && aData.getLength() < nMaxBytesToRead ) aData.realloc( nMaxBytesToRead ); - if ( !m_pStream.get() ) + if (!m_pStream) throw io::IOException( ); sal_Int32 nRead = 0; @@ -111,7 +111,7 @@ namespace cmis { osl::MutexGuard aGuard( m_aMutex ); - if ( !m_pStream.get() ) + if (!m_pStream) throw io::IOException( ); try @@ -144,7 +144,7 @@ namespace cmis "Location can't be negative or greater than the length", static_cast< cppu::OWeakObject* >( this ), 0 ); - if ( !m_pStream.get() ) + if (!m_pStream) throw io::IOException( ); try @@ -163,7 +163,7 @@ namespace cmis { osl::MutexGuard aGuard( m_aMutex ); - if ( !m_pStream.get() ) + if (!m_pStream) throw io::IOException( ); sal_Int64 nPos = m_pStream->tellg( ); |