From 9514229249b6313ddb8a8a15a674c8d67f28c48e Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Sun, 5 Aug 2018 14:08:42 +0200 Subject: [PATCH] QByteArray: Fix documentation for toDouble() and toInt() The character 'g' is only a valid format when converting numbers to strings, but not other way round. Amends dc133765ec47e9625c49701f0ffd762b0ee1ad48 Change-Id: I98d1a4d4cf0665f6e4da6861243e41cd63d7d4b5 Reviewed-by: Martin Smith --- src/corelib/tools/qbytearray.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qbytearray.cpp b/src/corelib/tools/qbytearray.cpp index 3560b21653..10e9b22161 100644 --- a/src/corelib/tools/qbytearray.cpp +++ b/src/corelib/tools/qbytearray.cpp @@ -4125,7 +4125,7 @@ ushort QByteArray::toUShort(bool *ok, int base) const \snippet code/src_corelib_tools_qbytearray.cpp 38 \warning The QByteArray content may only contain valid numerical characters - which includes the plus/minus sign, the characters g and e used in scientific + which includes the plus/minus sign, the character e used in scientific notation, and the decimal point. Including the unit or additional characters leads to a conversion error. @@ -4160,7 +4160,7 @@ double QByteArray::toDouble(bool *ok) const \snippet code/src_corelib_tools_qbytearray.cpp 38float \warning The QByteArray content may only contain valid numerical characters - which includes the plus/minus sign, the characters g and e used in scientific + which includes the plus/minus sign, the character e used in scientific notation, and the decimal point. Including the unit or additional characters leads to a conversion error.