summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2018-08-05 14:08:42 +0200
committerAndré Hartmann <aha_1980@gmx.de>2018-08-06 08:28:30 +0000
commit9514229249b6313ddb8a8a15a674c8d67f28c48e (patch)
tree9fe34f388265d23fb00b10b3b4e20cd277c701ca
parentc1f86926a14f911ec7e578f63c96ba2292fa7cbe (diff)
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 <martin.smith@qt.io>
-rw-r--r--src/corelib/tools/qbytearray.cpp4
1 files 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.