X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/f3c0d7a59d99c2a94c6b8822291f0e42be3773c9..refs/heads/master:/icuSources/test/perf/collationperf/collperf.cpp diff --git a/icuSources/test/perf/collationperf/collperf.cpp b/icuSources/test/perf/collationperf/collperf.cpp index fe334a2c..33e3e6c6 100644 --- a/icuSources/test/perf/collationperf/collperf.cpp +++ b/icuSources/test/perf/collationperf/collperf.cpp @@ -374,7 +374,6 @@ void doKeyGen() int line; int loops = 0; int iLoop; - int t; int len=-1; // Adjust loop count to compensate for file size. Should be order n @@ -392,9 +391,9 @@ void doKeyGen() len = gFileLines[line].len; } for (iLoop=0; iLoop < opt_iLoopCount; iLoop++) { - t=LCMapStringW(gWinLCID, LCMAP_SORTKEY, + LCMapStringW(gWinLCID, LCMAP_SORTKEY, gFileLines[line].name, len, - (unsigned short *)gFileLines[line].winSortKey, 5000); // TODO something with length. + (UChar *)gFileLines[line].winSortKey, 5000); // TODO something with length. } } } @@ -407,7 +406,7 @@ void doKeyGen() len = gFileLines[line].len; } for (iLoop=0; iLoop < opt_iLoopCount; iLoop++) { - t = ucol_getSortKey(gCol, gFileLines[line].name, len, (unsigned char *)gFileLines[line].icuSortKey, 5000); + ucol_getSortKey(gCol, gFileLines[line].name, len, (unsigned char *)gFileLines[line].icuSortKey, 5000); } } } @@ -417,7 +416,7 @@ void doKeyGen() for (loops=0; loops (int32_t)sizeof(buf)) { - t = LCMapStringW(gWinLCID, LCMAP_SORTKEY, gFileLines[line].name, -1, (unsigned short *)(gFileLines[line].winSortKey), t); + t = LCMapStringW(gWinLCID, LCMAP_SORTKEY, gFileLines[line].name, -1, (UChar *)(gFileLines[line].winSortKey), t); } else {