diff options
author | Andreas Bille <abi@openoffice.org> | 2002-03-07 10:55:55 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2002-03-07 10:55:55 +0000 |
commit | 67e2c23a43b594ecf5f313519d3fd8acce57fa2f (patch) | |
tree | e3e21d879ca1c3713851a808d1abcaedd66afdf7 /xmlhelp | |
parent | 3467986740e73a7990fe888418c2a998c98139c0 (diff) |
#95155# XSeekable implementation was removed from package-XInputstream. I have to adapt my implementation.
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index a6725a9ca648..0c9ee686e438 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -2,9 +2,9 @@ * * $RCSfile: urlparameter.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: abi $ $Date: 2001-10-31 13:08:14 $ + * last change: $Author: abi $ $Date: 2002-03-07 11:55:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1105,12 +1105,14 @@ int schemehandlergetall( void *userData, if( xInputStream.is() ) { - Reference< XSeekable > xSeekable( xInputStream,UNO_QUERY ); - sal_Int32 size = 0; + Reference< XSeekable > xSeekable( xInputStream,UNO_QUERY ); + if( xSeekable.is() ) size = sal_Int32( xSeekable->getLength() ); + else + size = sal_Int32( xInputStream->available() ); *buffer = new char[ 1+size ]; (*buffer)[ size ] = 0; |