diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-05-04 17:02:09 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-05-15 14:02:45 +0200 |
commit | 00ccc564348f83b07337b7575dfb0a9d0ec8ff2d (patch) | |
tree | 7ef2d9a9c98ea6521f8d6d6c20ac93221c556356 | |
parent | f8ad9cd23c1ee33497c0e4300ebf62f1830751d2 (diff) | |
download | qtbase-00ccc564348f83b07337b7575dfb0a9d0ec8ff2d.tar.gz |
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>
-rw-r--r-- | examples/corelib/serialization/rsslisting/rsslisting.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/corelib/serialization/rsslisting/rsslisting.cpp b/examples/corelib/serialization/rsslisting/rsslisting.cpp index 60067479d2..f174969072 100644 --- a/examples/corelib/serialization/rsslisting/rsslisting.cpp +++ b/examples/corelib/serialization/rsslisting/rsslisting.cpp @@ -113,10 +113,10 @@ void RSSListing::fetch() void RSSListing::metaDataChanged() { - QUrl redirectionTarget = currentReply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl(); - if (redirectionTarget.isValid()) { + const QUrl redirectionTarget = + currentReply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl(); + if (redirectionTarget.isValid()) get(redirectionTarget); - } } /* @@ -185,9 +185,8 @@ void RSSListing::parseXml() linkString += xml.text(); } } - if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError) { + if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError) qWarning() << "XML ERROR:" << xml.lineNumber() << ": " << xml.errorString(); - } } /* |