From 29c4a27a94d6f0dc9d91227d99bab7c2f55710db Mon Sep 17 00:00:00 2001 From: John Layt Date: Fri, 27 Jan 2012 19:04:42 +0000 Subject: SIC: QLocale: Remove base argument from conversion to number api As discussed on list and approved by Lars and Thiago. Remove the option to use QLocale to convert strings to non-decimal numbers as they are not localised and the api is available in QString. Change-Id: Ib810505ba86fb08ad23571b39f1520e86fde6787 Reviewed-by: Lars Knoll Reviewed-by: Thiago Macieira --- src/corelib/tools/qdatetime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib/tools/qdatetime.cpp') diff --git a/src/corelib/tools/qdatetime.cpp b/src/corelib/tools/qdatetime.cpp index 8649690c72..3da7a37066 100644 --- a/src/corelib/tools/qdatetime.cpp +++ b/src/corelib/tools/qdatetime.cpp @@ -4697,7 +4697,7 @@ int QDateTimeParser::parseSection(const QDateTime ¤tValue, int sectionInde const int max = qMin(sectionmaxsize, sectiontextSize); for (int digits = max; digits >= 1; --digits) { digitsStr.truncate(digits); - int tmp = (int)loc.toUInt(digitsStr, &ok, 10); + int tmp = (int)loc.toUInt(digitsStr, &ok); if (ok && sn.type == Hour12Section) { if (tmp > 12) { tmp = -1; -- cgit v1.2.3