diff options
author | Keith Gardner <kreios4004@gmail.com> | 2013-02-02 13:08:15 -0600 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-16 14:51:21 +0100 |
commit | b26c9da89220a26227353d67cfe6c25ec6ddc0ee (patch) | |
tree | 4bdfabec29c440975e821ffbbfbab42eada03f4e /src/corelib/tools/qlocale_p.h | |
parent | 08f8027a0eb75c2dc0e6ad885c65e35008c728b3 (diff) |
QLocalePrivate: Generalized numberToCLocale.
Modified QLocalPrivate::numberToCLocale to take a const QChar * and an
integer instead of a QString. This allows for passing QStrings and
QStringRefs into the same function. Updated the
QLocalePrivate::stringToDouble, QLocalePrivate::stringToLongLong, and
QLocalePrivate::stringToUnsLongLong to use this new function signature.
Change-Id: Ifee5dfcd9b743e1d3b9123a65007c89e8ed93e83
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/corelib/tools/qlocale_p.h')
-rw-r--r-- | src/corelib/tools/qlocale_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlocale_p.h b/src/corelib/tools/qlocale_p.h index 3746cd56e6..5389fd2384 100644 --- a/src/corelib/tools/qlocale_p.h +++ b/src/corelib/tools/qlocale_p.h @@ -317,7 +317,7 @@ public: static quint64 bytearrayToUnsLongLong(const char *num, int base, bool *ok); typedef QVarLengthArray<char, 256> CharBuff; - bool numberToCLocale(const QString &num, + bool numberToCLocale(const QChar *str, int len, GroupSeparatorMode group_sep_mode, CharBuff *result) const; inline char digitToCLocale(QChar c) const; |