--- a/notifications/audioscrobbler.h
+++ b/notifications/audioscrobbler.h
@@ -66,9 +66,9 @@
// Current song playing. maybeScrobble uses this to decide when to
// queue data for scrobbling
MetaData m_curmeta;
- time_t m_curpos; // current position in song
- time_t m_starttime; // time started playing
- bool m_sent;
+ time_t m_curpos{0}; // current position in song
+ time_t m_starttime{0}; // time started playing
+ bool m_sent{false};
// Songs which need scrobbling. The queue can grow if Last.FM is
// unaccessible for a time, but we don't save it to disk for now
@@ -76,14 +76,14 @@
QHash<QString, MetaData> m_queue;
// Last try processing the queue. We wait 5mn after a failure
- time_t m_lastqfail;
+ time_t m_lastqfail{0};
// Current error count. We try to reconnect after 3
- int m_failcount;
+ int m_failcount{0};
// Logged in ?
- bool m_authed;
+ bool m_authed{false};
std::string m_sessionid;
- QNetworkAccessManager *m_netman;
- bool m_netactive;
+ QNetworkAccessManager *m_netman{0};
+ bool m_netactive{false};
};
#endif /* _AUDIOSCROBBLER_H_INCLUDED_ */