From 778f6b1d7070ddc5b920764d5233e318b15ccf12 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 12 Aug 2019 14:42:51 +0300 Subject: test: Simplify tests with parent-child relationships MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create object instances with a parent to avoid the need for reparenting objects manually. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- test/event-thread.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test/event-thread.cpp') diff --git a/test/event-thread.cpp b/test/event-thread.cpp index 5488a44a..714bc984 100644 --- a/test/event-thread.cpp +++ b/test/event-thread.cpp @@ -27,7 +27,7 @@ public: { pipe(pipefd_); - notifier_ = new EventNotifier(pipefd_[0], EventNotifier::Read); + notifier_ = new EventNotifier(pipefd_[0], EventNotifier::Read, this); notifier_->activated.connect(this, &EventHandler::readReady); } @@ -61,12 +61,6 @@ public: return notified_; } - void moveToThread(Thread *thread) - { - Object::moveToThread(thread); - notifier_->moveToThread(thread); - } - private: void readReady(EventNotifier *notifier) { -- cgit v1.2.1