summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2019-09-08 23:07:28 +0200
committerArno <arno@disconnect.de>2019-09-08 23:07:28 +0200
commitb6a01de2de5a8b06f80395b8794ccb8de183311b (patch)
tree361a9423d67147042f191f6b4a9fc2d9d85d6133
parent6f59de4d3e4103f98f49eff5c6dd35ba1c1594a0 (diff)
downloadBeetPlayer-b6a01de2de5a8b06f80395b8794ccb8de183311b.tar.gz
BeetPlayer-b6a01de2de5a8b06f80395b8794ccb8de183311b.tar.bz2
BeetPlayer-b6a01de2de5a8b06f80395b8794ccb8de183311b.zip
Fix signedness and conversion warnings
-rw-r--r--indexerwidget.cpp8
-rw-r--r--indexerwidget.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/indexerwidget.cpp b/indexerwidget.cpp
index da9c32f..af79ed2 100644
--- a/indexerwidget.cpp
+++ b/indexerwidget.cpp
@@ -154,8 +154,8 @@ void BeetReader::run(){
QString title = toQString(file.tag()->title());
QString genre = toQString(file.tag()->genre());
int length = file.audioProperties()->lengthInSeconds();
- quint16 track = file.tag()->track();
- quint16 year = file.tag()->year();
+ uint track = file.tag()->track();
+ uint year = file.tag()->year();
QString parentDir = QFileInfo(QString(s)).absolutePath();
QFileInfo albumDir(parentDir);
QDateTime dateAdded = albumDir.lastModified();
@@ -244,7 +244,7 @@ int BeetReader::doGenre(QString name){
return retval;
}
-int BeetReader::doAlbum(QString name, int year, QDateTime created){
+int BeetReader::doAlbum(QString name, uint year, QDateTime created){
QString key = name;
if(mAlbumH.contains(key)){
return mAlbumH.value(key);
@@ -264,7 +264,7 @@ int BeetReader::doAlbum(QString name, int year, QDateTime created){
return retval;
}
-void BeetReader::doSong(QString title, int pos, int album, int genre, int artist, QString fullpath, int length){
+void BeetReader::doSong(QString title, uint pos, int album, int genre, int artist, QString fullpath, int length){
mDb.transaction();
mInsertSongQ->bindValue(":title", title);
mInsertSongQ->bindValue(":pos", pos);
diff --git a/indexerwidget.h b/indexerwidget.h
index ce7763d..cdd84f5 100644
--- a/indexerwidget.h
+++ b/indexerwidget.h
@@ -55,8 +55,8 @@ class BeetReader : public QThread {
void clearAll();
int doArtist(QString name);
int doGenre(QString name);
- int doAlbum(QString name, int year, QDateTime created);
- void doSong(QString title, int pos, int album, int genre, int artist, QString fullpath, int length);
+ int doAlbum(QString name, uint year, QDateTime created);
+ void doSong(QString title, uint pos, int album, int genre, int artist, QString fullpath, int length);
QMutex mCancelMx;
bool mCanceled;
QSqlDatabase mDb;