summaryrefslogtreecommitdiff
path: root/src/outputs.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-07-04 06:07:00 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2009-07-04 06:07:00 +0200
commit2eb913fe22b3ef26004f085f60a8d9ab8aa75d6e (patch)
treedbb098bc4a0e7778b0918e821f2d1704d4ddf7df /src/outputs.cpp
parent979a9e7670010555c9032cc30eec3183e8893bd7 (diff)
define MPD::Connection handler as an object, not pointer
Diffstat (limited to 'src/outputs.cpp')
-rw-r--r--src/outputs.cpp6
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);