summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/filstr.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:21:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:21:25 +0000
commit5b2b10956de2a22454fa0ca9067a35ec7d055152 (patch)
treed1aa80a11ac6e0efb3645d05a4fbdea07cc376b6 /ucb/source/ucp/file/filstr.cxx
parenta82157afef02ca3e504c1461af743125dc6fa242 (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.
Diffstat (limited to 'ucb/source/ucp/file/filstr.cxx')
-rw-r--r--ucb/source/ucp/file/filstr.cxx51
1 files changed, 9 insertions, 42 deletions
diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx
index 64483b80e8..8925e662d4 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);