summaryrefslogtreecommitdiff
path: root/test/object-invoke.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/object-invoke.cpp')
-rw-r--r--test/object-invoke.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/object-invoke.cpp b/test/object-invoke.cpp
index 7221930f..37a27440 100644
--- a/test/object-invoke.cpp
+++ b/test/object-invoke.cpp
@@ -9,12 +9,11 @@
#include <iostream>
#include <thread>
-#include <libcamera/camera_manager.h>
#include <libcamera/event_dispatcher.h>
#include <libcamera/object.h>
-#include "thread.h"
#include "test.h"
+#include "thread.h"
using namespace std;
using namespace libcamera;
@@ -61,7 +60,7 @@ class ObjectInvokeTest : public Test
protected:
int run()
{
- EventDispatcher *dispatcher = CameraManager::instance()->eventDispatcher();
+ EventDispatcher *dispatcher = Thread::current()->eventDispatcher();
InvokedObject object;
/*