rsslisting example (coding style): split a long line, purge stray braces

Pick-to: 6.5
Task-number: QTBUG-111228
Change-Id: Ic919d4dee74823f11c55d286beba447d45111754
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Edward Welbourne 2023-05-04 17:02:09 +02:00
parent f8ad9cd23c
commit 00ccc56434

View File

@ -113,10 +113,10 @@ void RSSListing::fetch()
void RSSListing::metaDataChanged() void RSSListing::metaDataChanged()
{ {
QUrl redirectionTarget = currentReply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl(); const QUrl redirectionTarget =
if (redirectionTarget.isValid()) { currentReply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl();
if (redirectionTarget.isValid())
get(redirectionTarget); get(redirectionTarget);
}
} }
/* /*
@ -185,9 +185,8 @@ void RSSListing::parseXml()
linkString += xml.text(); linkString += xml.text();
} }
} }
if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError) { if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError)
qWarning() << "XML ERROR:" << xml.lineNumber() << ": " << xml.errorString(); qWarning() << "XML ERROR:" << xml.lineNumber() << ": " << xml.errorString();
}
} }
/* /*