Fix cast warnings with MSVC

This commit is contained in:
Jonas Kvinge
2025-03-25 00:37:07 +01:00
parent d5281abb22
commit 5e031be42c
59 changed files with 207 additions and 207 deletions

View File

@@ -306,7 +306,7 @@ void ListenBrainzScrobbler::UpdateNowPlaying(const Song &song) {
song_playing_ = song;
scrobbled_ = false;
timestamp_ = QDateTime::currentSecsSinceEpoch();
timestamp_ = static_cast<quint64>(QDateTime::currentSecsSinceEpoch());
if (!song.is_metadata_good() || !authenticated() || settings_->offline()) return;

View File

@@ -389,7 +389,7 @@ void ScrobblingAPI20::UpdateNowPlaying(const Song &song) {
CheckScrobblePrevSong();
song_playing_ = song;
timestamp_ = QDateTime::currentSecsSinceEpoch();
timestamp_ = static_cast<quint64>(QDateTime::currentSecsSinceEpoch());
scrobbled_ = false;
if (!authenticated() || !song.is_metadata_good() || settings_->offline()) return;