Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1c02e5a authored by Luca Stefani's avatar Luca Stefani Committed by Michael Bestas
Browse files

errno_restorer: Make bool operator explicit

* Fixes clang-tidy google-explicit-constructor

Test: m
Change-Id: I8422ca8505fa8a2499b168610e75dc49bd03e88d
parent b0139f32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ class ErrnoRestorer {
  ~ErrnoRestorer() { errno = saved_errno_; }

  // Allow this object to be used as part of && operation.
  operator bool() const { return true; }
  explicit operator bool() const { return true; }

 private:
  const int saved_errno_;