aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 23:56:24 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 00:00:03 +0100
commit4a283330394fd2e1541a03bd312e5fadf54aa055 (patch)
treef4c861f3d940b0752d2163dcea5c1a7690f2b05f /src
parentad7f2b2aecd9b1d36e133429033fd8664d14e405 (diff)
downloadmpd-4a283330394fd2e1541a03bd312e5fadf54aa055.tar.gz
mpd-4a283330394fd2e1541a03bd312e5fadf54aa055.tar.xz
mpd-4a283330394fd2e1541a03bd312e5fadf54aa055.zip
event/Loop: remove the dummy constructor argument
Diffstat (limited to '')
-rw-r--r--src/Main.cxx2
-rw-r--r--src/event/Loop.cxx2
-rw-r--r--src/event/Loop.hxx4
3 files changed, 3 insertions, 5 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index fd10d2253..1bee66ca8 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -411,7 +411,7 @@ int mpd_main(int argc, char *argv[])
}
main_thread = ThreadId::GetCurrent();
- main_loop = new EventLoop(EventLoop::Default());
+ main_loop = new EventLoop();
instance = new Instance();
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx
index 6bbb6df8e..4ded68ff4 100644
--- a/src/event/Loop.cxx
+++ b/src/event/Loop.cxx
@@ -28,7 +28,7 @@
#include <algorithm>
-EventLoop::EventLoop(Default)
+EventLoop::EventLoop()
:SocketMonitor(*this),
now_ms(::MonotonicClockMS()),
quit(false), busy(true),
diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx
index 322c1ec82..56804dc81 100644
--- a/src/event/Loop.hxx
+++ b/src/event/Loop.hxx
@@ -115,9 +115,7 @@ class EventLoop final : SocketMonitor
ThreadId thread;
public:
- struct Default {};
-
- EventLoop(Default dummy=Default());
+ EventLoop();
~EventLoop();
/**