aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine-eds.cpp5
-rw-r--r--src/main.cpp3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index 277c090..709bb4d 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -1245,6 +1245,11 @@ private:
****
***/
+EdsEngine::EdsEngine():
+ p(new Impl(std::shared_ptr<Myself>(new Myself)))
+{
+}
+
EdsEngine::EdsEngine(const std::shared_ptr<Myself> &myself):
p(new Impl(myself))
{
diff --git a/src/main.cpp b/src/main.cpp
index 0da55a2..fdd84b5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,7 +25,6 @@
#include <datetime/exporter.h>
#include <datetime/locations-settings.h>
#include <datetime/menu.h>
-#include <datetime/myself.h>
#include <datetime/planner-aggregate.h>
#include <datetime/planner-snooze.h>
#include <datetime/planner-range.h>
@@ -61,7 +60,7 @@ namespace
if (!g_strcmp0("lightdm", g_get_user_name()))
engine.reset(new MockEngine);
else
- engine.reset(new EdsEngine(std::shared_ptr<Myself>(new Myself)));
+ engine.reset(new EdsEngine);
return engine;
}