mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Ran formatter (#99)
This commit is contained in:
committed by
Peter Johnson
parent
ec12b0ffe2
commit
b9c8ebeffa
@@ -402,7 +402,7 @@ void UsbCameraImpl::CameraThreadMain() {
|
||||
m_mode.width, m_mode.height,
|
||||
llvm::StringRef(
|
||||
static_cast<const char*>(m_buffers[buf.index].m_data),
|
||||
static_cast<std::size_t>(buf.bytesused)),
|
||||
static_cast<size_t>(buf.bytesused)),
|
||||
wpi::Now()); // TODO: time
|
||||
}
|
||||
|
||||
|
||||
@@ -93,8 +93,8 @@ static int GetStringCtrlIoctl(int fd, int id, int maximum, std::string* value) {
|
||||
|
||||
static int SetStringCtrlIoctl(int fd, int id, int maximum,
|
||||
llvm::StringRef value) {
|
||||
llvm::SmallString<64> str{value.substr(
|
||||
0, std::min(value.size(), static_cast<std::size_t>(maximum)))};
|
||||
llvm::SmallString<64> str{
|
||||
value.substr(0, std::min(value.size(), static_cast<size_t>(maximum)))};
|
||||
|
||||
struct v4l2_ext_control ctrl;
|
||||
struct v4l2_ext_controls ctrls;
|
||||
|
||||
Reference in New Issue
Block a user