1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

Clear RSS parsing error after use

PR #17465.
This commit is contained in:
Vladimir Golovnev 2022-08-01 08:15:16 +03:00 committed by GitHub
parent 6d1573f901
commit 0056a61db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -549,7 +549,7 @@ RSS::Private::Parser::Parser(const QString lastBuildDate)
// read and create items from a rss document
void RSS::Private::Parser::parse(const QByteArray &feedData)
{
QXmlStreamReader xml(feedData);
QXmlStreamReader xml {feedData};
XmlStreamEntityResolver resolver;
xml.setEntityResolver(&resolver);
bool foundChannel = false;
@ -596,7 +596,8 @@ void RSS::Private::Parser::parse(const QByteArray &feedData)
}
emit finished(m_result);
m_result.articles.clear(); // clear articles only
m_result.articles.clear();
m_result.error.clear();
m_articleIDs.clear();
}