diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 12:13:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:47 +0100 |
commit | d293fa9e217f778815ae114e7c7778dfc26e4525 (patch) | |
tree | f9a086a5ee7371208526d3d0529904e5f7380139 /sal | |
parent | Use bool (diff) | |
download | core-d293fa9e217f778815ae114e7c7778dfc26e4525.tar.gz core-d293fa9e217f778815ae114e7c7778dfc26e4525.zip |
Use bool
Change-Id: I12f0a6331c435c1eac692e5c20a173ce84830290
Diffstat (limited to 'sal')
-rw-r--r-- | sal/textenc/tcvtutf7.cxx | 4 | ||||
-rw-r--r-- | sal/textenc/tcvtutf8.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sal/textenc/tcvtutf7.cxx b/sal/textenc/tcvtutf7.cxx index ed87e6ffbc53..367a7c85439f 100644 --- a/sal/textenc/tcvtutf7.cxx +++ b/sal/textenc/tcvtutf7.cxx @@ -437,7 +437,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext, sal_Unicode c = '\0'; int bEnd = sal_False; int bShifted; - int bNeedShift; + bool bNeedShift; sal_uInt32 nBitBuffer; sal_uInt32 nBitBufferTemp; sal_uInt32 nBufferBits; @@ -496,7 +496,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext, else { bEnd = sal_True; - bNeedShift = sal_False; + bNeedShift = false; } if ( bShifted ) diff --git a/sal/textenc/tcvtutf8.cxx b/sal/textenc/tcvtutf8.cxx index a8b262ac51de..932d13e883a6 100644 --- a/sal/textenc/tcvtutf8.cxx +++ b/sal/textenc/tcvtutf8.cxx @@ -75,7 +75,7 @@ sal_Size ImplConvertUtf8ToUnicode( RTL_TEXTENCODING_UTF8 and RTL_TEXTENCODING_JAVA_UTF8. */ - int bJavaUtf8 = pData != NULL; + bool bJavaUtf8 = pData != NULL; sal_uInt32 nUtf32 = 0; int nShift = -1; bool bCheckBom = true; @@ -95,7 +95,7 @@ sal_Size ImplConvertUtf8ToUnicode( while (pSrcBufPtr < pSrcBufEnd) { bool bUndefined = false; - int bConsume = true; + bool bConsume = true; sal_uInt32 nChar = *pSrcBufPtr++; if (nShift < 0) if (nChar <= 0x7F) @@ -271,7 +271,7 @@ sal_Size ImplConvertUnicodeToUtf8( sal_Size nSrcChars, char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags, sal_uInt32 * pInfo, sal_Size * pSrcCvtChars) { - int bJavaUtf8 = pData != NULL; + bool bJavaUtf8 = pData != NULL; sal_Unicode nHighSurrogate = 0xFFFF; sal_uInt32 nInfo = 0; sal_Unicode const * pSrcBufPtr = pSrcBuf; |