summaryrefslogtreecommitdiffstats
path: root/tests/auto/network
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2020-08-17 15:01:58 +0200
committerAndre Hartmann <aha_1980@gmx.de>2020-08-24 13:50:56 +0200
commit6bd157c0f596e16631c22e0ed325076bf6f3aedc (patch)
tree9f06965852bc444d79e16fd3bd137364538a9d9c /tests/auto/network
parent41a716ebbfc9a8fcbf8ebca24da9638d3e9b9639 (diff)
QLocale: Fix double conversion snippet
* QString("1234,56").toDouble(&ok); always operates in the "C" locale and therefore ok is always false * Explicitly state that the return value is zero when ok is set to false * Made snippet compileable by giving str a type Pick-to: 5.15 Change-Id: I403eb39ca78a5f9ceb92ccd8ac3539581294796c Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests/auto/network')
0 files changed, 0 insertions, 0 deletions