From ab3837f86f84fc92b13ad0a79f6d41ba6252deb5 Mon Sep 17 00:00:00 2001 From: John Layt Date: Sat, 31 Mar 2012 21:14:20 +0100 Subject: QLocale: Merge month name data storage to save 50KB memory Month Names and Standalone Month Names are stored separately, but for majority of locales the names are the same and so storage is duplicated. By storing both sets of names in the same array 50KB is saved in libQtCore.so on Linux. Depends on change Ic84bbc82 in branch api_review for CLDR 1.9.1 Change-Id: I83224ebc2180ee6de69797fa50d38348acc94107 Reviewed-by: Denis Dzyubenko --- src/corelib/tools/qlocale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qlocale.cpp') diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp index 2d1444c315..594189f272 100644 --- a/src/corelib/tools/qlocale.cpp +++ b/src/corelib/tools/qlocale.cpp @@ -1954,7 +1954,7 @@ QString QLocale::standaloneMonthName(int month, FormatType type) const default: return QString(); } - QString name = getLocaleListData(standalone_months_data + idx, size, month - 1); + QString name = getLocaleListData(months_data + idx, size, month - 1); if (name.isEmpty()) return monthName(month, type); return name; -- cgit v1.2.3