mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 16:53:08 -07:00
Coding style changes
This commit is contained in:
parent
30bc14c940
commit
06ccae591e
12 changed files with 53 additions and 59 deletions
|
@ -143,15 +143,10 @@ void RssFeed::rename(const QString &new_name) {
|
||||||
|
|
||||||
// Return the alias if the stream has one, the url if it has no alias
|
// Return the alias if the stream has one, the url if it has no alias
|
||||||
QString RssFeed::displayName() const {
|
QString RssFeed::displayName() const {
|
||||||
if (!m_alias.isEmpty()) {
|
if (!m_alias.isEmpty())
|
||||||
//qDebug("getName() returned alias: %s", (const char*)alias.toLocal8Bit());
|
|
||||||
return m_alias;
|
return m_alias;
|
||||||
}
|
if (!m_title.isEmpty())
|
||||||
if (!m_title.isEmpty()) {
|
|
||||||
//qDebug("getName() returned title: %s", (const char*)title.toLocal8Bit());
|
|
||||||
return m_title;
|
return m_title;
|
||||||
}
|
|
||||||
//qDebug("getName() returned url: %s", (const char*)url.toLocal8Bit());
|
|
||||||
return m_url;
|
return m_url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -213,9 +208,8 @@ RssArticleList RssFeed::unreadArticleList() const {
|
||||||
|
|
||||||
// download the icon from the adress
|
// download the icon from the adress
|
||||||
QString RssFeed::iconUrl() const {
|
QString RssFeed::iconUrl() const {
|
||||||
const QUrl siteUrl(m_url);
|
|
||||||
// XXX: This works for most sites but it is not perfect
|
// XXX: This works for most sites but it is not perfect
|
||||||
return QString("http://")+siteUrl.host()+QString("/favicon.ico");
|
return QString("http://")+QUrl(m_url).host()+QString("/favicon.ico");
|
||||||
}
|
}
|
||||||
|
|
||||||
void RssFeed::parseRSSChannel(QXmlStreamReader& xml)
|
void RssFeed::parseRSSChannel(QXmlStreamReader& xml)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue