Commit b0727f21 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

fix some warnings reported by Clazy

parent 19b4c509
......@@ -922,6 +922,8 @@ void DataModel::initialize(MusicListenersManager *manager, DatabaseInterface *da
const QString &genre, const QString &artist, qulonglong databaseId,
const QUrl &pathFilter)
{
Q_UNUSED(pathFilter)
qCDebug(orgKdeElisaModel()) << "DataModel::initialize" << modelType << filter << databaseId << genre << artist;
d->mDatabaseId = databaseId;
......
......@@ -179,6 +179,7 @@ QVariant TrackMetadataModel::data(const QModelIndex &index, int role) const
case DataTypes::FullDataRole:
case DataTypes::IsDirectoryRole:
case DataTypes::IsPlayListRole:
case DataTypes::FilePathRole:
break;
}
break;
......@@ -260,6 +261,7 @@ QVariant TrackMetadataModel::data(const QModelIndex &index, int role) const
case DataTypes::FullDataRole:
case DataTypes::IsDirectoryRole:
case DataTypes::IsPlayListRole:
case DataTypes::FilePathRole:
break;
}
break;
......@@ -539,7 +541,7 @@ void TrackMetadataModel::setDatabase(DatabaseInterface *trackDatabase)
void TrackMetadataModel::deleteRadio()
{
if (mTrackData[DataTypes::DatabaseIdRole]>=0) {
if (mTrackData[DataTypes::DatabaseIdRole].toULongLong()) {
Q_EMIT deleteRadioData(mTrackData[DataTypes::DatabaseIdRole].toULongLong());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment