Skip to content

Instantly share code, notes, and snippets.

@lferra
Created June 19, 2018 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lferra/b5118de107843e4cd2d2f89862961887 to your computer and use it in GitHub Desktop.
Save lferra/b5118de107843e4cd2d2f89862961887 to your computer and use it in GitHub Desktop.
qtwebengine-5.11.0-gcc-8.1.0.patch
--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h.orig 2018-06-14 11:54:15.291169372 +0200
+++ a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h 2018-06-14 11:58:20.938363525 +0200
@@ -45,7 +45,7 @@
bool is_valid() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
+ explicit operator bool() const { return !!handle_; }
ScopedInterfaceEndpointHandle PassHandle() {
return std::move(handle_);
--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h.orig 2018-06-14 11:54:29.699820397 +0200
+++ a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h 2018-06-14 11:58:35.966979581 +0200
@@ -50,7 +50,7 @@
// handle.
bool is_pending() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
+ explicit operator bool() const { return !!handle_; }
ScopedInterfaceEndpointHandle PassHandle() { return std::move(handle_); }
--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/interface_request.h.orig 2018-06-14 11:54:45.838311375 +0200
+++ a/src/3rdparty/chromium/mojo/public/cpp/bindings/interface_request.h 2018-06-14 11:58:55.405191170 +0200
@@ -54,7 +54,7 @@
// Indicates whether the request currently contains a valid message pipe.
bool is_pending() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
+ explicit operator bool() const { return !!handle_; }
// Removes the message pipe from the request and returns it.
ScopedMessagePipeHandle PassMessagePipe() { return std::move(handle_); }
--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h.orig 2018-06-14 11:54:59.677018953 +0200
+++ a/src/3rdparty/chromium/mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h 2018-06-14 11:59:54.919726088 +0200
@@ -45,6 +45,8 @@
bool is_valid() const;
+ explicit operator bool() const { return is_valid(); }
+
// Returns true if the interface hasn't associated with a message pipe.
bool pending_association() const;
--- a/src/3rdparty/chromium/mojo/public/cpp/system/handle.h.orig 2018-06-14 11:55:27.044467149 +0200
+++ a/src/3rdparty/chromium/mojo/public/cpp/system/handle.h 2018-06-14 12:00:15.197867401 +0200
@@ -121,7 +121,7 @@
bool is_valid() const { return handle_.is_valid(); }
- explicit operator bool() const { return handle_; }
+ explicit operator bool() const { return !!handle_; }
bool operator==(const ScopedHandleBase& other) const {
return handle_.value() == other.get().value();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment