aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-26 20:14:56 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2020-08-03 12:23:02 +0200
commit802cfcaa62c29998fad7b5a957ca1586038043f6 (patch)
tree4f0b18aba85b1a6e3861872042ef96f05f058c7e
parentc766aececf294ba629c23e0dfd62cee7a089d55d (diff)
use explicit for single argument constructors
Found with google-explicit-constructor 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, 3 insertions, 3 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index 436de288..5df71b80 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -218,11 +218,11 @@ static bool fill_output_buffer(const cv4l_queue &q, cv4l_buffer &buf, bool first
class buffer : public cv4l_buffer {
public:
- buffer(unsigned type = 0, unsigned memory = 0, unsigned index = 0) :
+ explicit buffer(unsigned type = 0, unsigned memory = 0, unsigned index = 0) :
cv4l_buffer(type, memory, index) {}
- buffer(const cv4l_queue &q, unsigned index = 0) :
+ explicit buffer(const cv4l_queue &q, unsigned index = 0) :
cv4l_buffer(q, index) {}
- buffer(const cv4l_buffer &b) : cv4l_buffer(b) {}
+ explicit buffer(const cv4l_buffer &b) : cv4l_buffer(b) {}
int querybuf(node *node, unsigned index)
{

Privacy Policy