summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-13 10:41:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-13 13:50:37 +0000
commit4bc5287636aa4d12aaaeff94076b4fb202a2d936 (patch)
tree56e85664aa9481ce072d24dc8f75b16659b667d5 /tools
parentc1fd218e903d5b7b9f705b379d86f0d237705785 (diff)
xub_StrLen->sal_Int32
Change-Id: Ia52a898fa0a6b47eb7f78b03ef8c8648ddf72e28
Diffstat (limited to 'tools')
-rw-r--r--tools/source/inet/inetmime.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 2152c900fbac..83ca17e16e65 100644
--- a/tools/source/inet/inetmime.cxx
+++ b/tools/source/inet/inetmime.cxx
@@ -178,7 +178,7 @@ namespace unnamed_tools_inetmime {
void appendISO88591(OUString & rText, sal_Char const * pBegin,
sal_Char const * pEnd)
{
- xub_StrLen nLength = static_cast< xub_StrLen >(pEnd - pBegin);
+ sal_Int32 nLength = pEnd - pBegin;
sal_Unicode * pBuffer = new sal_Unicode[nLength];
for (sal_Unicode * p = pBuffer; pBegin != pEnd;)
*p++ = sal_uChar(*pBegin++);
@@ -2670,7 +2670,7 @@ OUString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
if (eType == HEADER_FIELD_TEXT)
sDecoded += OUString(
pUnicodeBuffer,
- static_cast< xub_StrLen >(nUnicodeSize));
+ static_cast< sal_Int32 >(nUnicodeSize));
else if (nCommentLevel == 0)
{
sEncodedText = OUString(pUnicodeBuffer, nUnicodeSize);
@@ -2781,8 +2781,7 @@ OUString INetMIME::decodeHeaderFieldBody(HeaderFieldType eType,
{
appendISO88591(sDecoded, pCopyBegin, p - 1);
sal_Unicode aUTF16Buf[2];
- xub_StrLen nUTF16Len = static_cast< xub_StrLen >(
- putUTF32Character(aUTF16Buf, nCharacter) - aUTF16Buf);
+ sal_Int32 nUTF16Len = putUTF32Character(aUTF16Buf, nCharacter) - aUTF16Buf;
sDecoded += OUString(aUTF16Buf, nUTF16Len);
p = pUTF8End;
pCopyBegin = p;