Skip to content

Commit

Permalink
ICU-22721 Reorder initializer to match declaration (-Wreorder-ctor).
Browse files Browse the repository at this point in the history
  • Loading branch information
roubert authored and FrankYFTang committed Apr 29, 2024
1 parent d7c1f6b commit 755b098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions icu4c/source/test/perf/collperf/collperf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ struct CompactArrays{\
UNIT * data; /*the real space to hold strings*/ \
\
~CompactArrays(){free(index);free(data);} \
CompactArrays():data(nullptr), index(nullptr), count(0){ \
CompactArrays():count(0), index(nullptr), data(nullptr){ \
index = (int32_t *) realloc(index, sizeof(int32_t)); \
index[0] = 0; \
} \
Expand Down Expand Up @@ -354,7 +354,7 @@ struct CmdQsort : public UPerfFunction{
void * backup; //copy source of base
public:
CmdQsort(UErrorCode & status,void *theBase, int32_t num, int32_t width, Func fn, int32_t,int32_t)
:backup(theBase),num(num),width(width),fn(fn){
:fn(fn),num(num),width(width),backup(theBase){
base = malloc(num * width);
time_empty(100, &status); // warm memory/cache
}
Expand Down

0 comments on commit 755b098

Please sign in to comment.