mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-05 03:21:42 +00:00
clang-tidy: google-explicit-constructor
This commit is contained in:
@@ -46,8 +46,8 @@ class Buffer : public uv_buf_t {
|
||||
ArrayRef<char> data() const { return ArrayRef<char>{base, len}; }
|
||||
MutableArrayRef<char> data() { return MutableArrayRef<char>{base, len}; }
|
||||
|
||||
operator ArrayRef<char>() const { return data(); }
|
||||
operator MutableArrayRef<char>() { return data(); }
|
||||
operator ArrayRef<char>() const { return data(); } // NOLINT
|
||||
operator MutableArrayRef<char>() { return data(); } // NOLINT
|
||||
|
||||
static Buffer Allocate(size_t size) { return Buffer{new char[size], size}; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user