diff options
-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(); - } } /* |