ICU-900 Fixed some compiler warnings.

X-SVN-Rev: 8306
This commit is contained in:
George Rhoten 2002-03-29 20:10:05 +00:00
parent 4395815832
commit d88cc28869
2 changed files with 9 additions and 13 deletions

View File

@ -1,14 +1,8 @@
/*
*******************************************************************************
* Copyright (C) 1996-2000, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu/source/i18n/Attic/caniter.cpp,v $
* $Date: 2002/03/27 06:27:19 $
* $Revision: 1.16 $
*
*****************************************************************************************
*****************************************************************************
* Copyright (C) 1996-2002, International Business Machines Corporation and *
* others. All Rights Reserved. *
*****************************************************************************
*/
#include "hash.h"
@ -81,7 +75,7 @@ static const UnicodeString &Tr(const UnicodeString &source) {
/**
*@param source string to get results for
*/
CanonicalIterator::CanonicalIterator(UnicodeString source, UErrorCode &status) :
CanonicalIterator::CanonicalIterator(UnicodeString sourceStr, UErrorCode &status) :
pieces(NULL),
pieces_lengths(NULL),
current(NULL),
@ -89,7 +83,7 @@ CanonicalIterator::CanonicalIterator(UnicodeString source, UErrorCode &status) :
pieces_length(0)
{
if(U_SUCCESS(status)) {
setSource(source, status);
setSource(sourceStr, status);
}
}

View File

@ -97,7 +97,7 @@ int32_t ucol_inv_findCE(uint32_t CE, uint32_t SecondCE) {
*/
}
static uint32_t strengthMask[UCOL_CE_STRENGTH_LIMIT] = {
static const uint32_t strengthMask[UCOL_CE_STRENGTH_LIMIT] = {
0xFFFF0000,
0xFFFFFF00,
0xFFFFFFFF
@ -877,6 +877,7 @@ struct enumStruct {
UErrorCode *status;
};
U_CDECL_BEGIN
static UBool U_CALLCONV
_enumCategoryRangeClosureCategory(const void *context, UChar32 start, UChar32 limit, UCharCategory type) {
@ -937,6 +938,7 @@ _enumCategoryRangeClosureCategory(const void *context, UChar32 start, UChar32 li
}
return TRUE;
}
U_CDECL_END
UCATableHeader *ucol_assembleTailoringTable(UColTokenParser *src, UErrorCode *status) {