move struct constructor

This commit is contained in:
Bruno Morais 2019-09-06 11:33:37 -04:00
parent 69f1ba2a7b
commit c06bb687f8
2 changed files with 16 additions and 14 deletions

View File

@ -324,3 +324,18 @@ void MPRISRemote::MPRISSetVolume(double vol) {
playback->SetVolume(vol);
}
}
MPRISMetadataValues::MPRISMetadataValues() {
trackid = "";
length = 0;
artist = "";
title = "";
album = "";
albumArtist = "";
genre = "";
comment = "";
trackNumber = 0;
discNumber = 0;
available = false;
}

View File

@ -34,20 +34,7 @@ struct MPRISMetadataValues {
uint32_t trackNumber;
uint32_t discNumber;
bool available;
MPRISMetadataValues() {
trackid = "";
length = 0;
artist = "";
title = "";
album = "";
albumArtist = "";
genre = "";
comment = "";
trackNumber = 0;
discNumber = 0;
available = false;
}
MPRISMetadataValues();
};
class MPRISRemote : public IPlaybackRemote {