[PATCH 8/8] [clang-tidy] use explicit for single argument constructors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Found with google-explicit-constructor

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 utils/v4l2-compliance/v4l2-test-buffers.cpp | 6 +++---
 1 file 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)
 	{
-- 
2.26.2




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux