Fix cast warnings with MSVC
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user