qt5base-lts/tests/auto/corelib/global
Thiago Macieira c214c000cc qEnvironmentVariableIntValue: fix the case of a non-numeric value
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>
2017-06-01 06:02:10 +00:00
..
q_func_info Updated license headers 2016-01-21 18:55:18 +00:00
qflags Fix test build with ICC: QFlags does not auto cast to uint 2017-04-28 12:37:09 +00:00
qfloat16 Eliminate ambiguous casts involving qfloat16 2017-05-07 16:44:55 +00:00
qgetputenv qEnvironmentVariableIntValue: fix the case of a non-numeric value 2017-06-01 06:02:10 +00:00
qglobal foreach: do not use operators that trigger non-evaluated contexts 2016-12-10 18:11:38 +00:00
qglobalstatic tests: Unify license to GPL-EXCEPT 2017-04-03 07:18:46 +00:00
qhooks tst_qhooks: test that it's possible to chain multiple hooks together 2016-11-18 15:22:32 +00:00
qlogging Fix tst_qmessagehandler for configurations without process support 2017-05-31 13:10:03 +00:00
qnumeric Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qrand Updated license headers 2016-01-21 18:55:18 +00:00
qtendian QtCore: Remove Windows CE. 2016-03-30 11:22:47 +00:00
global.pro New qfloat16 class 2017-01-31 14:21:42 +00:00