needs more work first

This reverts commit 92f396733e.
This commit is contained in:
Caolán McNamara
2011-12-21 10:30:10 +00:00
parent fffae28952
commit 6708977331
46 changed files with 327 additions and 353 deletions

View File

@@ -656,7 +656,7 @@ SbError SbiStream::Read( ByteString& rBuf, sal_uInt16 n, bool bForceReadingPerBy
n = nLen;
if( !n )
return nError = SbERR_BAD_RECORD_LENGTH;
rtl::OStringBuffer aBuffer(read_uInt8s_ToOString(*pStrm, n));
rtl::OStringBuffer aBuffer(read_uInt8s_AsOString(*pStrm, n));
//Pad it out with ' ' to the requested length on short read
sal_Int32 nRequested = sal::static_int_cast<sal_Int32>(n);
comphelper::string::padToLength(aBuffer, nRequested, ' ');