Merge "Add nolint for implicit borrowed_fd constructors" am: 8987f061c4 am: 2d9148abb2

am: 814f744fac

Change-Id: I6a0c9c1024ab338e91af49792c13ff54845b06a7
This commit is contained in:
Tom Cherry 2019-07-16 01:48:39 -07:00 committed by android-build-merger
commit e444532cb0

View file

@ -258,9 +258,9 @@ inline DIR* Fdopendir(unique_fd&& ufd) {
// A wrapper type that can be implicitly constructed from either int or unique_fd.
struct borrowed_fd {
/* implicit */ borrowed_fd(int fd) : fd_(fd) {}
/* implicit */ borrowed_fd(int fd) : fd_(fd) {} // NOLINT
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_; }