diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-12 14:42:51 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-08-17 18:47:17 +0300 |
commit | 778f6b1d7070ddc5b920764d5233e318b15ccf12 (patch) | |
tree | 9770801bef9c8a9c162434e2097da00b4e159049 /test/event-thread.cpp | |
parent | d7aded92d34e86e744a422544b45f0a971203870 (diff) |
test: Simplify tests with parent-child relationships
Create object instances with a parent to avoid the need for reparenting
objects manually.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/event-thread.cpp')
-rw-r--r-- | test/event-thread.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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) { |