summaryrefslogtreecommitdiffstats
path: root/sal/textenc/converteuctw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/textenc/converteuctw.cxx')
-rw-r--r--sal/textenc/converteuctw.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/sal/textenc/converteuctw.cxx b/sal/textenc/converteuctw.cxx
index 14be7000cc88..87becd9b11ec 100644
--- a/sal/textenc/converteuctw.cxx
+++ b/sal/textenc/converteuctw.cxx
@@ -110,7 +110,7 @@ sal_Size ImplConvertEucTwToUnicode(void const * pData,
case IMPL_EUC_TW_TO_UNICODE_STATE_0:
if (nChar < 0x80)
if (pDestBufPtr != pDestBufEnd)
- *pDestBufPtr++ = (sal_Unicode) nChar;
+ *pDestBufPtr++ = static_cast<sal_Unicode>(nChar);
else
goto no_output;
else if (nChar >= 0xA1 && nChar <= 0xFE)
@@ -206,17 +206,16 @@ sal_Size ImplConvertEucTwToUnicode(void const * pData,
{
nOffset += nLast - nFirst + 1;
nFirst = pCns116431992Data[nOffset++];
- *pDestBufPtr++ = (sal_Unicode) nUnicode;
+ *pDestBufPtr++ = static_cast<sal_Unicode>(nUnicode);
*pDestBufPtr++
- = (sal_Unicode)
- pCns116431992Data[
- nOffset + (nChar - nFirst)];
+ = static_cast<sal_Unicode>(pCns116431992Data[
+ nOffset + (nChar - nFirst)]);
}
else
goto no_output;
else
if (pDestBufPtr != pDestBufEnd)
- *pDestBufPtr++ = (sal_Unicode) nUnicode;
+ *pDestBufPtr++ = static_cast<sal_Unicode>(nUnicode);
else
goto no_output;
}
@@ -326,7 +325,7 @@ sal_Size ImplConvertUnicodeToEucTw(void const * pData,
{
if (ImplIsHighSurrogate(nChar))
{
- nHighSurrogate = (sal_Unicode) nChar;
+ nHighSurrogate = static_cast<sal_Unicode>(nChar);
continue;
}
}