diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-23 16:04:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-25 17:19:36 +0200 |
commit | a006f60b6ae22db6acb57d06167a3c6fd8bc6f1b (patch) | |
tree | 707809080a1fbb95c101de7afe3233f85f0f7bcb /io | |
parent | d116894b26f538793a0d5dc5847efd2fb53e7acb (diff) |
loplugin:oncevar in helpcompiler..jvmfwk
Change-Id: Ia9b20a8ca95684cbeb21e3425972c43ba50df3cd
Reviewed-on: https://gerrit.libreoffice.org/39187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'io')
-rw-r--r-- | io/source/TextInputStream/TextInputStream.cxx | 6 | ||||
-rw-r--r-- | io/source/TextOutputStream/TextOutputStream.cxx | 3 |
2 files changed, 3 insertions, 6 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; diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx index a0555e53cc7c..c888adbf9cd4 100644 --- a/io/source/TextOutputStream/TextOutputStream.cxx +++ b/io/source/TextOutputStream/TextOutputStream.cxx @@ -159,8 +159,7 @@ void OTextOutputStream::writeString( const OUString& aString ) checkOutputStream(); if( !mbEncodingInitialized ) { - OUString aUtf8Str("utf8"); - setEncoding( aUtf8Str ); + setEncoding( "utf8" ); } if( !mbEncodingInitialized ) return; |