commit 61203bf461707bb8cad7f9a64969bdf6e3c98d1f
Author: Tom Callaway <spot(a)fedoraproject.org>
Date: Thu Mar 15 13:48:43 2018 -0400
use normal bool cast
chromium-65.0.3325.162-boolfix.patch | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/chromium-65.0.3325.162-boolfix.patch b/chromium-65.0.3325.162-boolfix.patch
index 325d649..a27f3a8 100644
--- a/chromium-65.0.3325.162-boolfix.patch
+++ b/chromium-65.0.3325.162-boolfix.patch
@@ -6,7 +6,7 @@ diff -up
chromium-65.0.3325.162/mojo/public/cpp/bindings/associated_interface_pt
bool is_valid() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
-+ explicit operator bool() const { return static_cast<bool> (handle_); }
++ explicit operator bool() const { return (bool) handle_; }
ScopedInterfaceEndpointHandle PassHandle() {
return std::move(handle_);
@@ -18,7 +18,7 @@ diff -up
chromium-65.0.3325.162/mojo/public/cpp/bindings/associated_interface_re
bool is_pending() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
-+ explicit operator bool() const { return static_cast<bool> (handle_); }
++ explicit operator bool() const { return (bool) handle_; }
ScopedInterfaceEndpointHandle PassHandle() { return std::move(handle_); }
@@ -30,7 +30,7 @@ diff -up
chromium-65.0.3325.162/mojo/public/cpp/bindings/interface_request.h.boo
bool is_pending() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
-+ explicit operator bool() const { return static_cast<bool> (handle_); }
++ explicit operator bool() const { return (bool) handle_; }
// Removes the message pipe from the request and returns it.
ScopedMessagePipeHandle PassMessagePipe() { return std::move(handle_); }