mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5787 fixed the warnings from VC++.
X-SVN-Rev: 22296
This commit is contained in:
parent
887eafb2c8
commit
3a6f874106
2 changed files with 6 additions and 2 deletions
|
@ -1023,6 +1023,7 @@ PatternMap::getHeader(UChar baseChar) {
|
|||
return NULL;
|
||||
}
|
||||
}
|
||||
return curElem;
|
||||
}
|
||||
|
||||
PatternMap::~PatternMap() {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue