The documentation says that it's equivalent to
qgetenv(varName).toInt()
But the implementation wasn't. QByteArray::toInt() verifies that the
entire string was consumed, so QByteArray("1a").toInt() == 0, but
qstrtoll alone doesn't. That is, qstrtoll("1a", ...) == 1.
The implementation also detected the base, a behavior I kept. Instead, I
updated the documentation.
Change-Id: I0031aa609e714ae983c3fffd14676ea6061a9268
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
|
||
|---|---|---|
| .. | ||
| q_func_info | ||
| qflags | ||
| qfloat16 | ||
| qgetputenv | ||
| qglobal | ||
| qglobalstatic | ||
| qhooks | ||
| qlogging | ||
| qnumeric | ||
| qrand | ||
| qtendian | ||
| global.pro | ||