Use initialization list in tidalrequest
This commit is contained in:
@@ -88,16 +88,17 @@ class TidalRequest : public TidalBaseRequest {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
struct Request {
|
struct Request {
|
||||||
QString artist_id = 0;
|
Request() : offset(0), limit(0) {}
|
||||||
QString album_id = 0;
|
QString artist_id;
|
||||||
QString song_id = 0;
|
QString album_id;
|
||||||
int offset = 0;
|
QString song_id;
|
||||||
int limit = 0;
|
int offset;
|
||||||
|
int limit;
|
||||||
QString album_artist;
|
QString album_artist;
|
||||||
};
|
};
|
||||||
struct AlbumCoverRequest {
|
struct AlbumCoverRequest {
|
||||||
qint64 artist_id = 0;
|
QString artist_id;
|
||||||
QString album_id = 0;
|
QString album_id;
|
||||||
QUrl url;
|
QUrl url;
|
||||||
QString filename;
|
QString filename;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user