diff options
Diffstat (limited to 'sal/textenc/tcvtbyte.cxx')
-rw-r--r-- | sal/textenc/tcvtbyte.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/textenc/tcvtbyte.cxx b/sal/textenc/tcvtbyte.cxx index aa6664a40494..ee727d9f910f 100644 --- a/sal/textenc/tcvtbyte.cxx +++ b/sal/textenc/tcvtbyte.cxx @@ -47,11 +47,11 @@ sal_Size ImplSymbolToUnicode( SAL_UNUSED_PARAMETER const void*, } /* 0-31 (all Control-Character get the same Unicode value) */ - unsigned char c = (unsigned char)*pSrcBuf; + unsigned char c = static_cast<unsigned char>(*pSrcBuf); if ( c <= 0x1F ) - *pDestBuf = (sal_Unicode)c; + *pDestBuf = static_cast<sal_Unicode>(c); else - *pDestBuf = ((sal_Unicode)c)+0xF000; + *pDestBuf = static_cast<sal_Unicode>(c)+0xF000; pDestBuf++; pSrcBuf++; } @@ -142,7 +142,7 @@ sal_Size ImplUpperCharToUnicode( const void* pData, } while ( pSrcBuf < pEndSrcBuf ) { - unsigned char c = (unsigned char)*pSrcBuf; + unsigned char c = static_cast<unsigned char>(*pSrcBuf); if (c < 0x80) cConv = c; else |