Kaydet (Commit) d293fa9e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use bool

Change-Id: I12f0a6331c435c1eac692e5c20a173ce84830290
üst f762bed1
...@@ -437,7 +437,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext, ...@@ -437,7 +437,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
sal_Unicode c = '\0'; sal_Unicode c = '\0';
int bEnd = sal_False; int bEnd = sal_False;
int bShifted; int bShifted;
int bNeedShift; bool bNeedShift;
sal_uInt32 nBitBuffer; sal_uInt32 nBitBuffer;
sal_uInt32 nBitBufferTemp; sal_uInt32 nBitBufferTemp;
sal_uInt32 nBufferBits; sal_uInt32 nBufferBits;
...@@ -496,7 +496,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext, ...@@ -496,7 +496,7 @@ sal_Size ImplUnicodeToUTF7( SAL_UNUSED_PARAMETER const void*, void* pContext,
else else
{ {
bEnd = sal_True; bEnd = sal_True;
bNeedShift = sal_False; bNeedShift = false;
} }
if ( bShifted ) if ( bShifted )
......
...@@ -75,7 +75,7 @@ sal_Size ImplConvertUtf8ToUnicode( ...@@ -75,7 +75,7 @@ sal_Size ImplConvertUtf8ToUnicode(
RTL_TEXTENCODING_UTF8 and RTL_TEXTENCODING_JAVA_UTF8. RTL_TEXTENCODING_UTF8 and RTL_TEXTENCODING_JAVA_UTF8.
*/ */
int bJavaUtf8 = pData != NULL; bool bJavaUtf8 = pData != NULL;
sal_uInt32 nUtf32 = 0; sal_uInt32 nUtf32 = 0;
int nShift = -1; int nShift = -1;
bool bCheckBom = true; bool bCheckBom = true;
...@@ -95,7 +95,7 @@ sal_Size ImplConvertUtf8ToUnicode( ...@@ -95,7 +95,7 @@ sal_Size ImplConvertUtf8ToUnicode(
while (pSrcBufPtr < pSrcBufEnd) while (pSrcBufPtr < pSrcBufEnd)
{ {
bool bUndefined = false; bool bUndefined = false;
int bConsume = true; bool bConsume = true;
sal_uInt32 nChar = *pSrcBufPtr++; sal_uInt32 nChar = *pSrcBufPtr++;
if (nShift < 0) if (nShift < 0)
if (nChar <= 0x7F) if (nChar <= 0x7F)
...@@ -271,7 +271,7 @@ sal_Size ImplConvertUnicodeToUtf8( ...@@ -271,7 +271,7 @@ sal_Size ImplConvertUnicodeToUtf8(
sal_Size nSrcChars, char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags, sal_Size nSrcChars, char * pDestBuf, sal_Size nDestBytes, sal_uInt32 nFlags,
sal_uInt32 * pInfo, sal_Size * pSrcCvtChars) sal_uInt32 * pInfo, sal_Size * pSrcCvtChars)
{ {
int bJavaUtf8 = pData != NULL; bool bJavaUtf8 = pData != NULL;
sal_Unicode nHighSurrogate = 0xFFFF; sal_Unicode nHighSurrogate = 0xFFFF;
sal_uInt32 nInfo = 0; sal_uInt32 nInfo = 0;
sal_Unicode const * pSrcBufPtr = pSrcBuf; sal_Unicode const * pSrcBufPtr = pSrcBuf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment