diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-10-13 13:25:33 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-10-13 18:13:03 +0000 |
commit | 7809bba68f65ad9e95691d52e6584314d4909bd0 (patch) | |
tree | 2826b0b18d12cd05f348dd0822dd72b9097af943 /src/tools | |
parent | 5fa64386336b3072a12054726483e4850fc53dea (diff) | |
download | qtbase-7809bba68f65ad9e95691d52e6584314d4909bd0.tar.gz |
QHostAddress::setAddress - fix an overload taking SpecialAddress
It must detach, otherwise it overwrites all QHostAddresses that were
sharing a given QHostAddressPrivate. This overload was introduced in
5.8 and probably as a result broke some pre-existing code, that previously
was using a conversion and the correctly working setAddress.
Conveniently, QHostAddress::clear() does: d.detach(); d->clear();,
exactly the first thing we do in other overloads of setAddress.
Task-number: QTBUG-63764
Change-Id: I63c36e877c9358d3ff26ba1f2e4adf35b771f426
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions