From 755b0981ec0af447c51fa362cbf9d143fa56092c Mon Sep 17 00:00:00 2001 From: Fredrik Roubert Date: Tue, 23 Apr 2024 14:54:37 +0200 Subject: [PATCH] ICU-22721 Reorder initializer to match declaration (-Wreorder-ctor). --- icu4c/source/test/perf/collperf/collperf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/test/perf/collperf/collperf.cpp b/icu4c/source/test/perf/collperf/collperf.cpp index 6f9ea90938e..01a790fc839 100644 --- a/icu4c/source/test/perf/collperf/collperf.cpp +++ b/icu4c/source/test/perf/collperf/collperf.cpp @@ -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; \ } \ @@ -354,7 +354,7 @@ private: 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 }