summaryrefslogtreecommitdiff
path: root/toolkit/source/helper/unomemorystream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/helper/unomemorystream.cxx')
-rw-r--r--toolkit/source/helper/unomemorystream.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/toolkit/source/helper/unomemorystream.cxx b/toolkit/source/helper/unomemorystream.cxx
index 765353e9b678..3105da5414a5 100644
--- a/toolkit/source/helper/unomemorystream.cxx
+++ b/toolkit/source/helper/unomemorystream.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -33,9 +33,9 @@
#include <toolkit/helper/unomemorystream.hxx>
#include <algorithm>
-// ----------------------------------------------------
-// class UnoMemoryStream
-// ----------------------------------------------------
+// ----------------------------------------------------
+// class UnoMemoryStream
+// ----------------------------------------------------
UnoMemoryStream::UnoMemoryStream( sal_uInt32 nInitSize, sal_uInt32 nInitResize )
: SvMemoryStream( nInitSize, nInitResize )
{
@@ -49,7 +49,7 @@ UnoMemoryStream::UnoMemoryStream( sal_uInt32 nInitSize, sal_uInt32 nInitResize )
return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ));
}
-
+
// ::com::sun::star::io::XInputStream
sal_Int32 UnoMemoryStream::readBytes( ::com::sun::star::uno::Sequence< sal_Int8 >& rData, sal_Int32 nBytesToRead ) throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::BufferSizeExceededException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
@@ -58,10 +58,10 @@ sal_Int32 UnoMemoryStream::readBytes( ::com::sun::star::uno::Sequence< sal_Int8
sal_Int32 nRead = available();
if ( nRead > nBytesToRead )
nRead = nBytesToRead;
-
+
rData = ::com::sun::star::uno::Sequence< sal_Int8 >( nRead );
Read( rData.getArray(), nRead );
-
+
return nRead;
}
@@ -70,14 +70,14 @@ sal_Int32 UnoMemoryStream::readSomeBytes( ::com::sun::star::uno::Sequence< sal_I
::osl::Guard< ::osl::Mutex > aGuard( GetMutex() );
sal_Int32 nAvailable = available();
- if( nAvailable )
+ if( nAvailable )
{
return readBytes( rData, std::min( nMaxBytesToRead , nAvailable ) );
}
- else
+ else
{
// Not the most effective method, but it sticks to the specification
- return readBytes( rData, 1 );
+ return readBytes( rData, 1 );
}
}
@@ -100,7 +100,7 @@ sal_Int32 UnoMemoryStream::available() throw(::com::sun::star::io::NotConnectedE
void UnoMemoryStream::closeInput() throw(::com::sun::star::io::NotConnectedException, ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException)
{
- // nothing to do
+ // nothing to do
}