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 dc133765ec
Change-Id: I98d1a4d4cf0665f6e4da6861243e41cd63d7d4b5
Reviewed-by: Martin Smith <martin.smith@qt.io>
bb10
parent
c1f86926a1
commit
9514229249
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue