mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
Use reference whenever possible
This commit is contained in:
@@ -382,13 +382,13 @@ void AutoDownloader::handleFeedURLChanged(Feed *feed, const QString &oldURL)
|
||||
}
|
||||
}
|
||||
|
||||
for (QSharedPointer<ProcessingJob> job : asConst(m_processingQueue))
|
||||
for (const QSharedPointer<ProcessingJob> &job : asConst(m_processingQueue))
|
||||
{
|
||||
if (job->feedURL == oldURL)
|
||||
job->feedURL = feed->url();
|
||||
}
|
||||
|
||||
for (QSharedPointer<ProcessingJob> job : asConst(m_waitingJobs))
|
||||
for (const QSharedPointer<ProcessingJob> &job : asConst(m_waitingJobs))
|
||||
{
|
||||
if (job->feedURL == oldURL)
|
||||
job->feedURL = feed->url();
|
||||
|
||||
@@ -541,7 +541,7 @@ namespace
|
||||
|
||||
const int PARSINGRESULT_TYPEID = qRegisterMetaType<RSS::Private::ParsingResult>();
|
||||
|
||||
RSS::Private::Parser::Parser(const QString lastBuildDate)
|
||||
RSS::Private::Parser::Parser(const QString &lastBuildDate)
|
||||
{
|
||||
m_result.lastBuildDate = lastBuildDate;
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace RSS::Private
|
||||
Q_DISABLE_COPY_MOVE(Parser)
|
||||
|
||||
public:
|
||||
explicit Parser(QString lastBuildDate);
|
||||
explicit Parser(const QString &lastBuildDate);
|
||||
void parse(const QByteArray &feedData);
|
||||
|
||||
signals:
|
||||
|
||||
Reference in New Issue
Block a user