aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2021-04-21 00:20:29 -0700
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-04-21 09:52:25 +0200
commita1369a2efd1fddeb7568b323596ab814e3ef0ecd (patch)
tree9460821dc1a7a57553415ca51b58682a033933ee
parent1b68151263278a1c92217307ed15b471416eb6ea (diff)
clang-tidy: use nullptr
Found with modernize-use-nullptr Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/libcecutil/cec-info.cpp2
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/libcecutil/cec-info.cpp b/utils/libcecutil/cec-info.cpp
index 22a68776..0172e853 100644
--- a/utils/libcecutil/cec-info.cpp
+++ b/utils/libcecutil/cec-info.cpp
@@ -168,7 +168,7 @@ const char *cec_vendor2s(unsigned vendor)
case 0x8065e9:
return "Benq";
default:
- return NULL;
+ return nullptr;
}
}
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 9f71332c..90a50361 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -1460,7 +1460,7 @@ void testNode(struct node &node, struct node &node_m2m_cap, struct node &expbuf_
node.controls.find(VIVID_CID_DISCONNECT) != node.controls.end()) {
if (node.node2)
node.node2->close();
- node.node2 = NULL;
+ node.node2 = nullptr;
printf("\ttest Disconnect: %s\n\n", ok(testVividDisconnect(&node)));
}

Privacy Policy