From 61203bf461707bb8cad7f9a64969bdf6e3c98d1f Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Thu, 15 Mar 2018 13:48:43 -0400 Subject: [PATCH] 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 325d649d..a27f3a81 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 (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 (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 (handle_); } ++ explicit operator bool() const { return (bool) handle_; } // Removes the message pipe from the request and returns it. ScopedMessagePipeHandle PassMessagePipe() { return std::move(handle_); }