summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2023-03-18 14:37:35 +0200
committerAhmad Samir <a.samirh78@gmail.com>2023-03-21 05:35:22 +0200
commit69d3e96e02d4726d79aaf2d82acd30a903aa5a74 (patch)
treed78e78db75afe49c268f7ca88b4c19d2ce950963 /src/corelib/text
parentb46e0b0ab2a74384ad0cbe8deb08f62472eeb064 (diff)
QLocaleData: move CharBuff typedef out of QLocaleData
It'll be used by another struct in a subsequent commit. Change-Id: Ia94c6ae3506f9ba6cba6b71a5839bff8b3a2ab1f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qlocale_p.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/text/qlocale_p.h b/src/corelib/text/qlocale_p.h
index aa9fc59bd4..649f75fbeb 100644
--- a/src/corelib/text/qlocale_p.h
+++ b/src/corelib/text/qlocale_p.h
@@ -211,6 +211,9 @@ struct QLocaleId
};
Q_DECLARE_TYPEINFO(QLocaleId, Q_PRIMITIVE_TYPE);
+
+using CharBuff = QVarLengthArray<char, 256>;
+
struct QLocaleData
{
public:
@@ -244,8 +247,6 @@ public:
enum NumberMode { IntegerMode, DoubleStandardMode, DoubleScientificMode };
- typedef QVarLengthArray<char, 256> CharBuff;
-
private:
enum PrecisionMode {
PMDecimalDigits = 0x01,