Libbase: NOLINT legacy unique_fd operator int
The use in implicit conversion is intentional. Test: m Change-Id: I6c756e772b274e8a525ba2ad792cc4a8e1fc0176
This commit is contained in:
parent
3ffb4ab82a
commit
468ffaeecf
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class unique_fd_impl final {
|
|||
void reset(int new_value = -1) { reset(new_value, nullptr); }
|
||||
|
||||
int get() const { return fd_; }
|
||||
operator int() const { return get(); }
|
||||
operator int() const { return get(); } // NOLINT
|
||||
|
||||
int release() __attribute__((warn_unused_result)) {
|
||||
tag(fd_, this, nullptr);
|
||||
|
|
Loading…
Reference in a new issue