diff options
Diffstat (limited to 'sal/textenc/handleundefinedunicodetotextchar.cxx')
-rw-r--r-- | sal/textenc/handleundefinedunicodetotextchar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/textenc/handleundefinedunicodetotextchar.cxx b/sal/textenc/handleundefinedunicodetotextchar.cxx index 007e342b485e..320562495e97 100644 --- a/sal/textenc/handleundefinedunicodetotextchar.cxx +++ b/sal/textenc/handleundefinedunicodetotextchar.cxx @@ -90,7 +90,7 @@ bool sal::detail::textenc::handleUndefinedUnicodeToTextChar( { if ( nFlags & RTL_UNICODETOTEXT_FLAGS_PRIVATE_MAPTO0 ) { - **ppDestBuf = (char)(unsigned char)(c-RTL_TEXTCVT_BYTE_PRIVATE_START); + **ppDestBuf = static_cast<char>(static_cast<unsigned char>(c-RTL_TEXTCVT_BYTE_PRIVATE_START)); (*ppDestBuf)++; (*ppSrcBuf)++; return true; |