summaryrefslogtreecommitdiff
path: root/io/source/TextInputStream/TextInputStream.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'io/source/TextInputStream/TextInputStream.cxx')
-rw-r--r--io/source/TextInputStream/TextInputStream.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index c068f86fffc7..b49c5ec2e1c1 100644
--- a/io/source/TextInputStream/TextInputStream.cxx
+++ b/io/source/TextInputStream/TextInputStream.cxx
@@ -170,8 +170,7 @@ OUString OTextInputStream::implReadString( const Sequence< sal_Unicode >& Delimi
OUString aRetStr;
if( !mbEncodingInitialized )
{
- OUString aUtf8Str("utf8");
- setEncoding( aUtf8Str );
+ setEncoding( "utf8" );
}
if( !mbEncodingInitialized )
return aRetStr;
@@ -278,8 +277,7 @@ sal_Int32 OTextInputStream::implReadNext()
try
{
- sal_Int32 nBytesToRead = READ_BYTE_COUNT;
- sal_Int32 nRead = mxStream->readSomeBytes( mSeqSource, nBytesToRead );
+ sal_Int32 nRead = mxStream->readSomeBytes( mSeqSource, READ_BYTE_COUNT );
sal_Int32 nTotalRead = nRead;
if( nRead == 0 )
mbReachedEOF = true;