mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Code optimization using initialization lists
- Removed Traditional Chinese translation because we lost our translator and translation is outdated
This commit is contained in:
parent
c6b25e5f79
commit
6ecb45d661
19 changed files with 27 additions and 3385 deletions
16
src/rss.h
16
src/rss.h
|
@ -59,9 +59,7 @@ class RssItem : public QObject {
|
|||
|
||||
public:
|
||||
// public constructor
|
||||
RssItem(const QDomElement& properties) {
|
||||
read = false;
|
||||
downloadLink = "none";
|
||||
RssItem(const QDomElement& properties) : read(false), downloadLink("none") {
|
||||
QDomElement property = properties.firstChild().toElement();
|
||||
while(!property.isNull()) {
|
||||
if (property.tagName() == "title")
|
||||
|
@ -116,18 +114,18 @@ class RssStream : public QObject{
|
|||
|
||||
private:
|
||||
QString title;
|
||||
QString alias;
|
||||
QString link;
|
||||
QString description;
|
||||
QString image;
|
||||
QString url;
|
||||
QString alias;
|
||||
QString filePath;
|
||||
QString iconPath;
|
||||
QList<RssItem*> listItem;
|
||||
QTime lastRefresh;
|
||||
bool read;
|
||||
bool downloadFailure;
|
||||
bool refreshed;
|
||||
bool downloadFailure;
|
||||
bool currently_loading;
|
||||
|
||||
public slots :
|
||||
|
@ -150,13 +148,7 @@ class RssStream : public QObject{
|
|||
}
|
||||
|
||||
public:
|
||||
RssStream(QString _url) {
|
||||
url = _url;
|
||||
alias = "";
|
||||
refreshed = false;
|
||||
downloadFailure = false;
|
||||
currently_loading = false;
|
||||
iconPath = ":/Icons/rss.png";
|
||||
RssStream(QString _url): url(_url), alias(""), iconPath(":/Icons/rss.png"), refreshed(false), downloadFailure(false), currently_loading(false) {
|
||||
qDebug("RSSStream constructed");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue