From 7f44f0b5083fda151f32955f4334b318e2386681 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 13 Oct 2015 17:51:17 +0200 Subject: Return value of LwpTools::QuickReadUnicode is unused ...since previous commit Change-Id: I439c8d66a826624a3131b56d96ff3fdd030abb28 --- lotuswordpro/source/filter/lwptools.cxx | 8 ++------ lotuswordpro/source/filter/lwptools.hxx | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'lotuswordpro') diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx index 48385216d9ea..6c2a3c196353 100644 --- a/lotuswordpro/source/filter/lwptools.cxx +++ b/lotuswordpro/source/filter/lwptools.cxx @@ -80,12 +80,10 @@ using namespace ::osl; /** * @descr read lwp unicode string from stream to OUString per aEncoding */ -sal_uInt16 LwpTools::QuickReadUnicode(LwpObjectStream* pObjStrm, +void LwpTools::QuickReadUnicode(LwpObjectStream* pObjStrm, OUString& str, sal_uInt16 strlen, rtl_TextEncoding aEncoding) //strlen: length of bytes { - - sal_uInt16 readLen = 0; OUStringBuffer strBuf(128); if( !IsUnicodePacked(pObjStrm, strlen) ) @@ -100,11 +98,9 @@ sal_uInt16 LwpTools::QuickReadUnicode(LwpObjectStream* pObjStrm, buf[len] = '\0'; strBuf.append( OUString(buf, len, aEncoding) ); strlen -= len; - readLen += len; if(!len) break; } str = strBuf.makeStringAndClear(); - return readLen; } else { @@ -116,6 +112,7 @@ sal_uInt16 LwpTools::QuickReadUnicode(LwpObjectStream* pObjStrm, bool flag = false; //switch if unicode part reached sal_uInt16 sublen = 0; + sal_uInt16 readLen = 0; while(readLen