aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-08-17 00:25:54 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-09-01 16:53:22 +0200
commitd61d087f2f74d3751a39a9000805184efd78d3fb (patch)
tree2326b85b804bf28a468b42de92578b9d66ac7e23
parent22466798f9a9044fa20ae3bb367d9fc29d37e054 (diff)
remove pointless constructor
The members can be initialized directly, allowing to remove the onstructor. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-compliance/v4l2-test-buffers.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 48718656..2d1c3da2 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -2453,8 +2453,6 @@ int testRequests(struct node *node, bool test_streaming)
class BlockingThread
{
public:
- BlockingThread() : done(false), running(false) {}
-
virtual ~BlockingThread()
{
stop();
@@ -2497,7 +2495,7 @@ public:
running = false;
}
- std::atomic<bool> done;
+ std::atomic<bool> done{};
private:
static void *startRoutine(void *arg)
@@ -2516,7 +2514,7 @@ private:
virtual void run() = 0;
pthread_t thread;
- std::atomic<bool> running;
+ std::atomic<bool> running{};
};
class DqbufThread : public BlockingThread

Privacy Policy