From 5a1cd3dcfaf37701a0a61cfe1a10dcec4c8bfefc Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 4 Apr 2012 13:51:33 -0300 Subject: [PATCH] Make QLocale::toULongLong return the proper type: qulonglong MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-25143 Change-Id: Ia8fd588c25d11fe31acd57fd34a90d51dace248c Reviewed-by: Giuseppe D'Angelo Reviewed-by: João Abecasis Reviewed-by: John Layt --- src/corelib/tools/qlocale.cpp | 4 +--- src/corelib/tools/qlocale.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/corelib/tools/qlocale.cpp b/src/corelib/tools/qlocale.cpp index 594189f272..b9f199e50e 100644 --- a/src/corelib/tools/qlocale.cpp +++ b/src/corelib/tools/qlocale.cpp @@ -1139,8 +1139,6 @@ qlonglong QLocale::toLongLong(const QString &s, bool *ok) const return d()->stringToLongLong(s, 10, ok, mode); } -// ### Qt5: make the return type for toULongLong() qulonglong. - /*! Returns the unsigned long long int represented by the localized string \a s. @@ -1155,7 +1153,7 @@ qlonglong QLocale::toLongLong(const QString &s, bool *ok) const \sa toLongLong(), toInt(), toDouble(), toString() */ -qlonglong QLocale::toULongLong(const QString &s, bool *ok) const +qulonglong QLocale::toULongLong(const QString &s, bool *ok) const { QLocalePrivate::GroupSeparatorMode mode = p.numberOptions & RejectGroupSeparator diff --git a/src/corelib/tools/qlocale.h b/src/corelib/tools/qlocale.h index 6c97a05ba8..bdb5ae026c 100644 --- a/src/corelib/tools/qlocale.h +++ b/src/corelib/tools/qlocale.h @@ -607,7 +607,7 @@ public: int toInt(const QString &s, bool *ok = 0) const; uint toUInt(const QString &s, bool *ok = 0) const; qlonglong toLongLong(const QString &s, bool *ok = 0) const; - qlonglong toULongLong(const QString &s, bool *ok = 0) const; + qulonglong toULongLong(const QString &s, bool *ok = 0) const; float toFloat(const QString &s, bool *ok = 0) const; double toDouble(const QString &s, bool *ok = 0) const;