diff options
| author | Jonathan Vander Mey <jonathan@vandermey.ca> | 2021-06-12 23:04:13 (GMT) |
|---|---|---|
| committer | JF002 <JF002@users.noreply.github.com> | 2021-07-02 15:47:14 (GMT) |
| commit | 8031cd1b4044823fb243b7ba2b2785de2a877fad (patch) | |
| tree | aeef899668a288daf53130986dbc60a02b3869d9 /src/components/ble/MusicService.h | |
| parent | d13b0a7ec54e9149b353563bef70f4ecee92cc3f (diff) | |
Inititialize members in class declaration
Also added initializers for previously unintialized members.
Diffstat (limited to 'src/components/ble/MusicService.h')
| -rw-r--r-- | src/components/ble/MusicService.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/components/ble/MusicService.h b/src/components/ble/MusicService.h index a611c51..1ad9a42 100644 --- a/src/components/ble/MusicService.h +++ b/src/components/ble/MusicService.h @@ -69,23 +69,23 @@ namespace Pinetime { struct ble_gatt_chr_def characteristicDefinition[14]; struct ble_gatt_svc_def serviceDefinition[2]; - uint16_t eventHandle; + uint16_t eventHandle {}; - std::string artistName; - std::string albumName; - std::string trackName; + std::string artistName {"Waiting for"}; + std::string albumName {}; + std::string trackName {"track information.."}; - bool playing; + bool playing {false}; - int trackProgress; - int trackLength; - int trackNumber; - int tracksTotal; + int trackProgress {0}; + int trackLength {0}; + int trackNumber {}; + int tracksTotal {}; - float playbackSpeed; + float playbackSpeed {1.0f}; - bool repeat; - bool shuffle; + bool repeat {false}; + bool shuffle {false}; Pinetime::System::SystemTask& m_system; }; |
