diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-06-21 11:21:18 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-04 12:11:14 -0600 |
commit | bb5f390fb9b466be35a5df7651323d7e66afca31 (patch) | |
tree | b40523f30f590353919c6f9a2923cfe0ca6620fc /modules/camera/camera_feed_linux.cpp | |
parent | 89a311205f20efd28faff8e4695bd1af730613ae (diff) | |
download | redot-engine-bb5f390fb9b466be35a5df7651323d7e66afca31.tar.gz |
Style: Apply `clang-tidy` fixes (superficial)
• `modernize-use-bool-literals`, `modernize-use-nullptr`, and `readability-braces-around-statements`
Diffstat (limited to 'modules/camera/camera_feed_linux.cpp')
-rw-r--r-- | modules/camera/camera_feed_linux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/camera/camera_feed_linux.cpp b/modules/camera/camera_feed_linux.cpp index 94bb2b6ad3..3ae1b70ac9 100644 --- a/modules/camera/camera_feed_linux.cpp +++ b/modules/camera/camera_feed_linux.cpp @@ -145,7 +145,7 @@ bool CameraFeedLinux::_request_buffers() { } buffers[i].length = buffer.length; - buffers[i].start = mmap(NULL, buffer.length, PROT_READ | PROT_WRITE, MAP_SHARED, file_descriptor, buffer.m.offset); + buffers[i].start = mmap(nullptr, buffer.length, PROT_READ | PROT_WRITE, MAP_SHARED, file_descriptor, buffer.m.offset); if (buffers[i].start == MAP_FAILED) { for (unsigned int b = 0; b < i; b++) { |