diff options
| author | Andre Hartmann <aha_1980@gmx.de> | 2020-08-17 15:01:58 +0200 |
|---|---|---|
| committer | Andre Hartmann <aha_1980@gmx.de> | 2020-08-24 13:50:56 +0200 |
| commit | 6bd157c0f596e16631c22e0ed325076bf6f3aedc (patch) | |
| tree | 9f06965852bc444d79e16fd3bd137364538a9d9c /src/corelib/global/qhooks.cpp | |
| parent | 41a716ebbfc9a8fcbf8ebca24da9638d3e9b9639 (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 'src/corelib/global/qhooks.cpp')
0 files changed, 0 insertions, 0 deletions
