diff --git a/icu4c/source/i18n/casetrn.h b/icu4c/source/i18n/casetrn.h index ba63e7c183..747fa1b554 100644 --- a/icu4c/source/i18n/casetrn.h +++ b/icu4c/source/i18n/casetrn.h @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2001-2004, International Business Machines +* Copyright (C) 2001-2005, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -97,7 +97,7 @@ protected: UTransPosition& offsets, UBool isIncremental) const; - UCaseProps *fCsp; + const UCaseProps *fCsp; UCaseMapFull *fMap; }; diff --git a/icu4c/source/test/cintltst/cucdtst.c b/icu4c/source/test/cintltst/cucdtst.c index cd38f07ce4..91c4abb1e3 100644 --- a/icu4c/source/test/cintltst/cucdtst.c +++ b/icu4c/source/test/cintltst/cucdtst.c @@ -2914,6 +2914,7 @@ TestConsistency() { static void TestUCase() { UDataMemory *pData; UCaseProps *csp; + const UCaseProps *ccsp; UErrorCode errorCode; /* coverage for ucase_openBinary() */ @@ -2942,8 +2943,8 @@ static void TestUCase() { /* coverage for ucase_getDummy() */ errorCode=U_ZERO_ERROR; - csp=ucase_getDummy(&errorCode); - if(ucase_tolower(csp, 0x41)!=0x41) { + ccsp=ucase_getDummy(&errorCode); + if(ucase_tolower(ccsp, 0x41)!=0x41) { log_err("ucase_tolower(dummy, A)!=A\n"); } } @@ -2952,6 +2953,7 @@ static void TestUCase() { static void TestUBiDiProps() { UDataMemory *pData; UBiDiProps *bdp; + const UBiDiProps *cbdp; UErrorCode errorCode; /* coverage for ubidi_openBinary() */ @@ -2980,8 +2982,8 @@ static void TestUBiDiProps() { /* coverage for ubidi_getDummy() */ errorCode=U_ZERO_ERROR; - bdp=ubidi_getDummy(&errorCode); - if(ubidi_getClass(bdp, 0x20)!=0) { + cbdp=ubidi_getDummy(&errorCode); + if(ubidi_getClass(cbdp, 0x20)!=0) { log_err("ubidi_getClass(dummy, space)!=0\n"); } }