forked from pool/libqt5-qtwebengine
5083235c3f
- Add yet another upstream chromium patch to fix build with GCC 8.1: * fix-build-with-gcc-8-for-real.patch - Add upstream Chromium patch to fix build with GCC 8.1: * fix-build-with-gcc-8.patch - Add upstream Chromium patch to fix build with ffmpeg 4: * fix-build-with-ffmpeg4.patch - Refresh patches: * disable-gpu-when-using-nouveau-boo-1005323.diff * harmony-fix.diff allowed parallel processes based on the available memory. Also * For more details please see: - Do not build on s390 and s390x, chromium have not ported to them - Add patch gcc50-fixes.diff to fix the detection of the GCC 5.x OBS-URL: https://build.opensuse.org/request/show/614857 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtwebengine?expand=0&rev=36
47 lines
2.3 KiB
Diff
47 lines
2.3 KiB
Diff
From b65488bce5e804e97acb64ccb696195699a26b8a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?J=C3=BCri=20Valdmann?= <juri.valdmann@qt.io>
|
|
Date: Wed, 16 May 2018 02:27:40 +0000
|
|
Subject: [PATCH] Fix operator bool in AssociatedInterfacePtrInfo and
|
|
AssociatedInterfaceRequest
|
|
|
|
Current version does not compile with GCC 8.1 and for good reason: there's no
|
|
operator bool defined in ScopedInterfaceEndpointHandle.
|
|
|
|
Bug: 795173, 819294
|
|
Change-Id: Ia0677af3160fb24c376c66863956ee6d171d7caf
|
|
Reviewed-on: https://chromium-review.googlesource.com/1059153
|
|
Commit-Queue: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
|
|
Reviewed-by: Ken Rockot <rockot@chromium.org>
|
|
Cr-Commit-Position: refs/heads/master@{#558931}
|
|
---
|
|
src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h | 2 +-
|
|
src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h b/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
|
index 1f79662bd7945..cc3f627167956 100644
|
|
--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
|
+++ b/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_ptr_info.h
|
|
@@ -45,7 +45,7 @@ class AssociatedInterfacePtrInfo {
|
|
|
|
bool is_valid() const { return handle_.is_valid(); }
|
|
|
|
- explicit operator bool() const { return handle_; }
|
|
+ explicit operator bool() const { return handle_.is_valid(); }
|
|
|
|
ScopedInterfaceEndpointHandle PassHandle() {
|
|
return std::move(handle_);
|
|
diff --git a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h b/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h
|
|
index 12d2f3ce1df1a..0926f3df92f85 100644
|
|
--- a/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h
|
|
+++ b/src/3rdparty/chromium/mojo/public/cpp/bindings/associated_interface_request.h
|
|
@@ -50,7 +50,7 @@ class AssociatedInterfaceRequest {
|
|
// handle.
|
|
bool is_pending() const { return handle_.is_valid(); }
|
|
|
|
- explicit operator bool() const { return handle_; }
|
|
+ explicit operator bool() const { return handle_.is_valid(); }
|
|
|
|
ScopedInterfaceEndpointHandle PassHandle() { return std::move(handle_); }
|
|
|