QXmlStreamReader: fix C++20 build
Amends 6bc227a06a.
Change-Id: I47384ce60093cb85a651c16667738dac69e0e747
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
bb10
parent
a53961da51
commit
ef4372dcae
|
|
@ -480,7 +480,7 @@ QIODevice *QXmlStreamReader::device() const
|
|||
void QXmlStreamReader::addData(QAnyStringView data)
|
||||
{
|
||||
Q_D(QXmlStreamReader);
|
||||
data.visit([=](auto data) {
|
||||
data.visit([this, d](auto data) {
|
||||
if constexpr (std::is_same_v<decltype(data), QStringView>) {
|
||||
d->lockEncoding = true;
|
||||
if (!d->decoder.isValid())
|
||||
|
|
|
|||
Loading…
Reference in New Issue