Fix narrowing conversions
This commit is contained in:
@@ -267,7 +267,7 @@ void ContextAlbumsModel::Reset() {
|
||||
|
||||
CollectionItem *ContextAlbumsModel::ItemFromSong(CollectionItem::Type item_type, const bool signal, CollectionItem *parent, const Song &s, const int container_level) {
|
||||
|
||||
if (signal) beginInsertRows(ItemToIndex(parent), parent->children.count(), parent->children.count());
|
||||
if (signal) beginInsertRows(ItemToIndex(parent), static_cast<int>(parent->children.count()), static_cast<int>(parent->children.count()));
|
||||
|
||||
CollectionItem *item = new CollectionItem(item_type, parent);
|
||||
item->container_level = container_level;
|
||||
|
||||
@@ -715,9 +715,9 @@ void ContextView::ResetSong() {
|
||||
|
||||
}
|
||||
|
||||
void ContextView::UpdateLyrics(const quint64 id, const QString &provider, const QString &lyrics) {
|
||||
void ContextView::UpdateLyrics(const int id, const QString &provider, const QString &lyrics) {
|
||||
|
||||
if (static_cast<qint64>(id) != lyrics_id_) return;
|
||||
if (id != lyrics_id_) return;
|
||||
lyrics_ = lyrics + "\n\n(Lyrics from " + provider + ")\n";
|
||||
lyrics_id_ = -1;
|
||||
if (action_show_lyrics_->isChecked()) {
|
||||
|
||||
@@ -93,7 +93,7 @@ class ContextView : public QWidget {
|
||||
void ActionSearchLyrics();
|
||||
void UpdateNoSong();
|
||||
void FadeStopFinished();
|
||||
void UpdateLyrics(const quint64 id, const QString &provider, const QString &lyrics);
|
||||
void UpdateLyrics(const int id, const QString &provider, const QString &lyrics);
|
||||
|
||||
public slots:
|
||||
void ReloadSettings();
|
||||
@@ -171,7 +171,7 @@ class ContextView : public QWidget {
|
||||
Song song_prev_;
|
||||
QImage image_original_;
|
||||
bool lyrics_tried_;
|
||||
qint64 lyrics_id_;
|
||||
int lyrics_id_;
|
||||
QString lyrics_;
|
||||
QString title_fmt_;
|
||||
QString summary_fmt_;
|
||||
|
||||
Reference in New Issue
Block a user