From 2eb913fe22b3ef26004f085f60a8d9ab8aa75d6e Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 4 Jul 2009 06:07:00 +0200 Subject: define MPD::Connection handler as an object, not pointer --- src/outputs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/outputs.cpp') diff --git a/src/outputs.cpp b/src/outputs.cpp index 902cac47..d6113361 100644 --- a/src/outputs.cpp +++ b/src/outputs.cpp @@ -73,7 +73,7 @@ void Outputs::EnterPressed() { if (w->Current().second) { - if (Mpd->DisableOutput(w->Choice())) + if (Mpd.DisableOutput(w->Choice())) { ShowMessage("Output \"%s\" disabled", w->Current().first.c_str()); w->Current().second = 0; @@ -82,7 +82,7 @@ void Outputs::EnterPressed() } else { - if (Mpd->EnableOutput(w->Choice())) + if (Mpd.EnableOutput(w->Choice())) { ShowMessage("Output \"%s\" enabled", w->Current().first.c_str()); w->Current().second = 1; @@ -109,7 +109,7 @@ void Outputs::MouseButtonPressed(MEVENT me) void Outputs::FetchList() { MPD::OutputList ol; - Mpd->GetOutputs(ol); + Mpd.GetOutputs(ol); w->Clear(); for (MPD::OutputList::const_iterator it = ol.begin(); it != ol.end(); it++) w->AddOption(*it, it->second); -- cgit v1.2.3