diff options
author | Andreas Bille <abi@openoffice.org> | 2002-07-03 10:15:49 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2002-07-03 10:15:49 +0000 |
commit | 81feb3197ea362fb7bd2c013368f11d2a006d940 (patch) | |
tree | 8bb15ffc2b7813f2e31e64fde5ff921d6c6e7e66 /ucb | |
parent | 20fa4921f595156b74e9a9cdbed79ae1b9ad97fc (diff) |
#93203# Better implementation name
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/filstr.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index e67530747480..1f97a912745c 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -75,7 +75,7 @@ rtl::OUString SAL_CALL XStream_impl::getImplementationName() throw( uno::RuntimeException) { - return rtl::OUString::createFromAscii("bla"); + return rtl::OUString::createFromAscii("com.sun.star.io.comp.XStream"); } @@ -281,18 +281,13 @@ XStream_impl::writeBytes( const uno::Sequence< sal_Int8 >& aData ) uno::RuntimeException) { sal_Int32 length = aData.getLength(); - sal_uInt64 nWrittenBytes; - if( length ) + if(length) { + sal_uInt64 nWrittenBytes(0); const sal_Int8* p = aData.getConstArray(); - m_aFile.write( ((void*)(p)), - sal_uInt64( length ), - nWrittenBytes ); - if( nWrittenBytes != length ) - { - // DBG_ASSERT( "Write Operation not successful" ); + if(osl::FileBase::E_None != m_aFile.write(((void*)(p)),sal_uInt64(length),nWrittenBytes) || + nWrittenBytes != length ) throw io::IOException(); - } } } |