summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2002-01-29 14:47:49 +0000
committerMartin Gallwey <mtg@openoffice.org>2002-01-29 14:47:49 +0000
commitb7b6efbb2ed779d028599beeb770c123d2453379 (patch)
tree5c3fb85d8a4c41f0b0b3326087d4e44e9f0276dc /starmath
parentb0cd0dcf193e07ef6d5c21aabdb3d6308c24b8f2 (diff)
#95155# use unbuffered stream access
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/mathml.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/starmath/source/mathml.cxx b/starmath/source/mathml.cxx
index 5656df53e91b..3208a6fe1bdb 100644
--- a/starmath/source/mathml.cxx
+++ b/starmath/source/mathml.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: mathml.cxx,v $
*
- * $Revision: 1.55 $
+ * $Revision: 1.56 $
*
- * last change: $Author: cmc $ $Date: 2002-01-08 12:45:28 $
+ * last change: $Author: mtg $ $Date: 2002-01-29 15:44:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -289,9 +289,6 @@ ULONG SmXMLWrapper::ReadThroughComponent(
SvStorageStreamRef xEventsStream;
xEventsStream = pStorage->OpenStream( sStreamName,
STREAM_READ | STREAM_NOCREATE );
- xEventsStream->SetBufferSize( 16*1024 );
- Reference<io::XInputStream> xInputStream =
- new utl::OInputStreamWrapper( *xEventsStream );
// determine if stream is encrypted or not
Any aAny;
@@ -301,9 +298,10 @@ ULONG SmXMLWrapper::ReadThroughComponent(
aAny.getValueType() == ::getBooleanCppuType() &&
*(sal_Bool *)aAny.getValue();
+ Reference < io::XInputStream > xStream = xEventsStream->GetXInputStream();
// read from the stream
return ReadThroughComponent(
- xInputStream, xModelComponent, rFactory, pFilterName, bEncrypted );
+ xStream, xModelComponent, rFactory, pFilterName, bEncrypted );
}
ULONG SmXMLWrapper::Import(SfxMedium &rMedium)