diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-11-15 21:46:32 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-11-19 17:33:33 +0100 |
commit | d7cb21ac085117f879a8aa1d7727b2ca52d3353d (patch) | |
tree | c03c3e62de3011d7743459078a7978206674190f /tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp | |
parent | ede867f581c0894e13d669f5364610df7ade0eb5 (diff) |
QDom: use QLocale::C when converting a double to a xml attribute
QDomElement::setAttribute(QString, double) did not use QString::setNum()
but qsnprintf(). This is wrong because qsnprintf() is using the current
locale instead QLocale::C. It was also inconsistent to
QDomElement::setAttributeNS() which was already using QString::setNum().
Also fix the documentation which stated that all
QDomElement::setAttribute() format the values according the current
locale.
Fixes: QTBUG-80068
Change-Id: Iabb0b39c0d0723060527542c283a5435f26f31ca
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qscopeguard/tst_qscopeguard.cpp')
0 files changed, 0 insertions, 0 deletions