diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2024-10-30 12:44:52 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2024-11-18 18:33:13 +0100 |
| commit | 35066b28c86cb0eb8880b6a4af84f8d02ff7aff0 (patch) | |
| tree | 1bbd3aebe8e6a3cc7dadbf4cc5c98a17a8877793 /src/corelib/thread/qthreadpool.cpp | |
| parent | 7a8cefd6fb66e6bc6880aaf5a938194611278bed (diff) | |
Enforce sorting of QTZ backend availableTimeZoneIds()
Various pieces of QTZP and QTZ rely (by using std::set_union or
std::set_intersection) on the backends supplying the list of available
IDs in sorted order. As this isn't documented as part of public API
behavior, document it internally and assert it.
Add the missing sorting and uniquification for Android; although the
Java API used does appear to return a sorted list, its specification
[0] says nothing about its ordering, so make sure. In the process,
rename a wantonly long variable so the uniquifying doesn't need a
line-split.
[0] https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html#getAvailableIDs--
Document, in the ICU backend, that the relevant API doesn't say what
order it returns; but also make clear where the backend *does* take
care of sorting it and rendering entries unique.
Change-Id: I61b4ecf342044e2303b18889c600da5922aec278
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/thread/qthreadpool.cpp')
0 files changed, 0 insertions, 0 deletions
