diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 04:21:25 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-20 04:21:25 +0000 |
commit | 3150a4005a55da55b028d48d186f889171800c65 (patch) | |
tree | 99e9419f9d976e13e78f07e218eea3fb9a2f2326 | |
parent | 53e439af719269b37c2d57b8e91cd0f95bf0147b (diff) |
INTEGRATION: CWS warnings01 (1.20.10); FILE MERGED
2005/11/10 15:32:55 pl 1.20.10.2: #i55991# removed warnings
2005/11/09 21:01:54 sb 1.20.10.1: #i53898# Made code warning-free.
-rw-r--r-- | ucb/source/ucp/file/filstr.cxx | 51 |
1 files changed, 9 insertions, 42 deletions
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index f4fbe298d936..a755522c7745 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -4,9 +4,9 @@ * * $RCSfile: filstr.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: rt $ $Date: 2005-09-09 15:28:01 $ + * last change: $Author: hr $ $Date: 2006-06-20 05:21:25 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -73,7 +73,6 @@ XStream_impl::queryInterface( { uno::Any aRet = cppu::queryInterface( rType, SAL_STATIC_CAST( lang::XTypeProvider*,this ), - SAL_STATIC_CAST( lang::XServiceInfo*,this ), SAL_STATIC_CAST( io::XStream*,this ), SAL_STATIC_CAST( io::XInputStream*,this ), SAL_STATIC_CAST( io::XOutputStream*,this ), @@ -103,44 +102,12 @@ XStream_impl::release( ////////////////////////////////////////////////////////////////////////////////////////// -// XServiceInfo -////////////////////////////////////////////////////////////////////////////////////////// - -rtl::OUString SAL_CALL -XStream_impl::getImplementationName() - throw( uno::RuntimeException) -{ - return rtl::OUString::createFromAscii("com.sun.star.io.comp.XStream"); -} - - - -sal_Bool SAL_CALL -XStream_impl::supportsService( const rtl::OUString& ServiceName ) - throw( uno::RuntimeException) -{ - return false; -} - - - -uno::Sequence< rtl::OUString > SAL_CALL -XStream_impl::getSupportedServiceNames() - throw( uno::RuntimeException ) -{ - uno::Sequence< rtl::OUString > ret( 0 ); - return ret; -} - - -////////////////////////////////////////////////////////////////////////////////////////// // XTypeProvider ////////////////////////////////////////////////////////////////////////////////////////// -XTYPEPROVIDER_IMPL_8( XStream_impl, +XTYPEPROVIDER_IMPL_7( XStream_impl, lang::XTypeProvider, - lang::XServiceInfo, io::XStream, io::XSeekable, io::XInputStream, @@ -151,13 +118,13 @@ XTYPEPROVIDER_IMPL_8( XStream_impl, XStream_impl::XStream_impl( shell* pMyShell,const rtl::OUString& aUncPath ) - : m_pMyShell( pMyShell ), - m_aFile( aUncPath ), + : m_bInputStreamCalled( false ), + m_bOutputStreamCalled( false ), + m_pMyShell( pMyShell ), m_xProvider( m_pMyShell->m_pProvider ), + m_aFile( aUncPath ), m_nErrorCode( TASKHANDLER_NO_ERROR ), - m_nMinorErrorCode( TASKHANDLER_NO_ERROR ), - m_bInputStreamCalled( false ), - m_bOutputStreamCalled( false ) + m_nMinorErrorCode( TASKHANDLER_NO_ERROR ) { osl::FileBase::RC err = m_aFile.open( OpenFlag_Read | OpenFlag_Write ); if( err != osl::FileBase::E_None ) @@ -323,7 +290,7 @@ XStream_impl::writeBytes( const uno::Sequence< sal_Int8 >& aData ) io::IOException, uno::RuntimeException) { - sal_Int32 length = aData.getLength(); + sal_uInt32 length = aData.getLength(); if(length) { sal_uInt64 nWrittenBytes(0); |