Kaydet (Commit) d9b718e3 authored tarafından Matteo Casalin's avatar Matteo Casalin

Constify two OUStrings

Change-Id: Ia136841959480212b2f7e525544e5e2f52064990
üst 207a86df
...@@ -1909,14 +1909,14 @@ Err: ...@@ -1909,14 +1909,14 @@ Err:
OUString read_uInt8_BeltAndBracesString(SvStream& rStrm, rtl_TextEncoding eEnc) OUString read_uInt8_BeltAndBracesString(SvStream& rStrm, rtl_TextEncoding eEnc)
{ {
OUString aRet = read_uInt8_lenPrefixed_uInt8s_ToOUString(rStrm, eEnc); const OUString aRet = read_uInt8_lenPrefixed_uInt8s_ToOUString(rStrm, eEnc);
rStrm.SeekRel(sizeof(sal_uInt8)); // skip null-byte at end rStrm.SeekRel(sizeof(sal_uInt8)); // skip null-byte at end
return aRet; return aRet;
} }
OUString read_uInt16_BeltAndBracesString(SvStream& rStrm) OUString read_uInt16_BeltAndBracesString(SvStream& rStrm)
{ {
OUString aRet = read_uInt16_PascalString(rStrm); const OUString aRet = read_uInt16_PascalString(rStrm);
rStrm.SeekRel(sizeof(sal_Unicode)); // skip null-byte at end rStrm.SeekRel(sizeof(sal_Unicode)); // skip null-byte at end
return aRet; return aRet;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment