diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-07-04 06:07:00 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-07-04 06:07:00 +0200 |
commit | 2eb913fe22b3ef26004f085f60a8d9ab8aa75d6e (patch) | |
tree | dbb098bc4a0e7778b0918e821f2d1704d4ddf7df /src/outputs.cpp | |
parent | 979a9e7670010555c9032cc30eec3183e8893bd7 (diff) |
define MPD::Connection handler as an object, not pointer
Diffstat (limited to 'src/outputs.cpp')
-rw-r--r-- | src/outputs.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |