summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-05-30 15:50:47 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2017-06-09 08:24:08 +0000
commitebb0212133bd91f1da4931b29eb1d33fb77b1444 (patch)
tree115ca1d5ca8c69b2a5c88a4341a4642418565de1 /src/corelib
parent3a569573b2b8e8dc56f0a152afcb48723b682ba8 (diff)
Rework locale serialization and parsing with less repetition
... because copy-and-paste is worth discouraging. Moved code that writes and digests our Q Local XML form of the data into a common class, localexml.Locale, for use by the scripts that write and read it. Hopefully, it'll be easier to keep what's written and read in sync hereafter. Inlined some trivial functions in the process; and only create a day-number mapping dictionary once, instead of once per use. Also made it easier to see which attributes get which special handling (and documented this); and revised an assertion to be more helpful. Change-Id: I711b6a193a4ad94b5ff714c025f2732cd1a965a7 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions