summaryrefslogtreecommitdiff
path: root/MenuApplets/Audio
diff options
context:
space:
mode:
Diffstat (limited to 'MenuApplets/Audio')
-rw-r--r--MenuApplets/Audio/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/MenuApplets/Audio/main.cpp b/MenuApplets/Audio/main.cpp
index c4b62ece18..c90a4adc6e 100644
--- a/MenuApplets/Audio/main.cpp
+++ b/MenuApplets/Audio/main.cpp
@@ -36,8 +36,8 @@ class AudioWidget final : public GUI::Widget {
C_OBJECT(AudioWidget)
public:
AudioWidget()
+ : m_audio_client(Audio::ClientConnection::construct())
{
- m_audio_client = make<Audio::ClientConnection>();
m_audio_client->on_muted_state_change = [this](bool muted) {
if (m_audio_muted == muted)
return;
@@ -68,7 +68,7 @@ private:
painter.blit({}, audio_bitmap, audio_bitmap.rect());
}
- OwnPtr<Audio::ClientConnection> m_audio_client;
+ NonnullRefPtr<Audio::ClientConnection> m_audio_client;
RefPtr<Gfx::Bitmap> m_muted_bitmap;
RefPtr<Gfx::Bitmap> m_unmuted_bitmap;
bool m_audio_muted { false };