ICU-5787 fixed the warnings from VC++.

X-SVN-Rev: 22296
This commit is contained in:
Claire Ho 2007-08-07 06:13:19 +00:00
parent 887eafb2c8
commit 3a6f874106
2 changed files with 6 additions and 2 deletions

View file

@ -1023,6 +1023,7 @@ PatternMap::getHeader(UChar baseChar) {
return NULL;
}
}
return curElem;
}
PatternMap::~PatternMap() {

View file

@ -217,6 +217,8 @@ static void TestBuilder() {
UChar result[20];
int32_t length, pLength;
const UChar *s, *p;
const UChar* ptrResult[2];
int32_t count=0;
/* test create an empty DateTimePatternGenerator */
dtpg=udatpg_openEmpty(&errorCode);
@ -264,8 +266,9 @@ static void TestBuilder() {
}
/* Get all skeletons and the crroespong pattern for each skeleton. */
const UChar* ptrResult[2] = {testPattern2, redundantPattern};
int32_t count=0;
ptrResult[0] = testPattern2;
ptrResult[1] = redundantPattern;
count=0;
en = udatpg_openSkeletons(dtpg, &errorCode);
if (U_FAILURE(errorCode) || (length==0) ) {
log_err("udatpg_openSkeletons failed!\n");