Merge "Add nolint for implicit borrowed_fd constructors" am: 8987f061c4
am: 2d9148abb2
Change-Id: I190836f1b3e801decf6b39c448d6254c7806d8e1
This commit is contained in:
commit
814f744fac
1 changed files with 2 additions and 2 deletions
|
|
@ -258,9 +258,9 @@ inline DIR* Fdopendir(unique_fd&& ufd) {
|
||||||
|
|
||||||
// A wrapper type that can be implicitly constructed from either int or unique_fd.
|
// A wrapper type that can be implicitly constructed from either int or unique_fd.
|
||||||
struct borrowed_fd {
|
struct borrowed_fd {
|
||||||
/* implicit */ borrowed_fd(int fd) : fd_(fd) {}
|
/* implicit */ borrowed_fd(int fd) : fd_(fd) {} // NOLINT
|
||||||
template <typename T>
|
template <typename T>
|
||||||
/* implicit */ borrowed_fd(const unique_fd_impl<T>& ufd) : fd_(ufd.get()) {}
|
/* implicit */ borrowed_fd(const unique_fd_impl<T>& ufd) : fd_(ufd.get()) {} // NOLINT
|
||||||
|
|
||||||
int get() const { return fd_; }
|
int get() const { return fd_; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue