[PATCH 2/8] clang-tidy: use nullptr

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

 



Found with modernize-use-nullptr

Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
 utils/libcecutil/cec-info.cpp             | 2 +-
 utils/v4l2-compliance/v4l2-compliance.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/libcecutil/cec-info.cpp b/utils/libcecutil/cec-info.cpp
index 22a687761..0172e8537 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 9f71332ce..90a503612 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)));
 	}
 
-- 
2.30.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