diff options
author | Arno <arno@disconnect.de> | 2018-12-09 06:13:53 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-12-09 06:13:53 +0100 |
commit | 21669640641ecf7a9a9adbd37902528d1f814a20 (patch) | |
tree | 3195286e047e14c5febf629e009e69031b81fabd | |
parent | 017146d134bb7baf257481a766cab21301b481cb (diff) | |
download | ShemovCleaner-21669640641ecf7a9a9adbd37902528d1f814a20.tar.gz ShemovCleaner-21669640641ecf7a9a9adbd37902528d1f814a20.tar.bz2 ShemovCleaner-21669640641ecf7a9a9adbd37902528d1f814a20.zip |
Fix clang warnings for torrent*
-rw-r--r-- | torrentdisplay.cpp | 2 | ||||
-rw-r--r-- | torrentdisplay.h | 2 | ||||
-rw-r--r-- | torrentparser.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/torrentdisplay.cpp b/torrentdisplay.cpp index 8f54b81..d9c094c 100644 --- a/torrentdisplay.cpp +++ b/torrentdisplay.cpp @@ -118,7 +118,7 @@ void TorrentDisplay::setData(const QList<QVariant> data, const QString &filename mFileView->resizeColumnToContents(1); } if(it.key() == "creation date"){ - qint64 secs = it.value().toLongLong(); + uint secs = it.value().toUInt(); QDateTime when = QDateTime::fromTime_t(secs); mCreated->setText(when.toString(Qt::RFC2822Date)); } diff --git a/torrentdisplay.h b/torrentdisplay.h index 221f0af..e689312 100644 --- a/torrentdisplay.h +++ b/torrentdisplay.h @@ -11,7 +11,7 @@ class QTreeView; class TorrentDisplay : public QDialog { Q_OBJECT public: - explicit TorrentDisplay(QWidget *parent = 0, Qt::WindowFlags f = 0); + explicit TorrentDisplay(QWidget *parent = nullptr, Qt::WindowFlags f = nullptr); void setData(const QList<QVariant> data, const QString &filename); QTreeView *fileView() { return mFileView; } diff --git a/torrentparser.h b/torrentparser.h index 8a99d22..1b64d14 100644 --- a/torrentparser.h +++ b/torrentparser.h @@ -11,7 +11,7 @@ class TorrentParser : public QObject { Q_OBJECT public: - TorrentParser(const QString file, QObject *parent = 0); + TorrentParser(const QString file, QObject *parent = nullptr); const QList<QVariant> parse(); const QStringList files(QList<QVariant> data); |