summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2020-08-25 11:16:06 +0200
committerAndre Hartmann <aha_1980@gmx.de>2020-08-26 17:07:35 +0200
commit35ee7ab7ba36218c4495cb9a6195264c1e69c501 (patch)
tree7e68246835cf8b5605519e95443265433941afb7 /tests
parent90c084884ea008fa0c37f55e900fbfa0b12bfd02 (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 Change-Id: I403eb39ca78a5f9ceb92ccd8ac3539581294796c Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 6bd157c0f596e16631c22e0ed325076bf6f3aedc)
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions