can replace ScfTools::AppendCString with SvStream::ReadCString

This commit is contained in:
Caolán McNamara 2011-10-04 23:38:52 +01:00
parent a1c936ce53
commit 253576484f
2 changed files with 1 additions and 15 deletions

View file

@ -310,22 +310,10 @@ ByteString ScfTools::ReadCString( SvStream& rStrm, sal_Int32& rnBytesLeft )
return aRet.makeStringAndClear();
}
void ScfTools::AppendCString( SvStream& rStrm, ByteString& rString )
{
sal_Char cChar;
rStrm >> cChar;
while( cChar )
{
rString += cChar;
rStrm >> cChar;
}
}
void ScfTools::AppendCString( SvStream& rStrm, String& rString, rtl_TextEncoding eTextEnc )
{
ByteString aByteString;
AppendCString( rStrm, aByteString );
rStrm.ReadCString(aByteString);
rString += String( aByteString, eTextEnc );
}

View file

@ -248,8 +248,6 @@ public:
inline static String ReadCString( SvStream& rStrm, sal_Int32& rnBytesLeft, rtl_TextEncoding eTextEnc )
{ return String( ReadCString( rStrm, rnBytesLeft ), eTextEnc ); }
/** Appends a zero terminted byte string. */
static void AppendCString( SvStream& rStrm, ByteString& rString );
/** Appends a zero terminted byte string. */
static void AppendCString( SvStream& rStrm, String& rString, rtl_TextEncoding eTextEnc );