From 4a283330394fd2e1541a03bd312e5fadf54aa055 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 4 Feb 2014 23:56:24 +0100 Subject: event/Loop: remove the dummy constructor argument --- src/Main.cxx | 2 +- src/event/Loop.cxx | 2 +- src/event/Loop.hxx | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src') 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 -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(); /** -- cgit v1.2.3