summaryrefslogtreecommitdiffstats
path: root/sync.profile
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-08-03 16:04:22 -0700
committerLiang Qi <liang.qi@qt.io>2017-06-01 06:02:10 +0000
commitc214c000ccebda30ed867934a9d56af29cb34264 (patch)
tree7d12d148cdd7c7ac8511816bde77e003a7777e2d /sync.profile
parente3bc01b0e339aa3730c619fb02201aa09468d557 (diff)
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>
Diffstat (limited to 'sync.profile')
0 files changed, 0 insertions, 0 deletions