diff options
author | Michael Brüning <michael.bruning@qt.io> | 2019-08-13 17:30:20 +0200 |
---|---|---|
committer | Michael Brüning <michael.bruning@qt.io> | 2019-08-14 18:20:49 +0000 |
commit | 7cade5688f6a0bde067dc496cedcb8de14662116 (patch) | |
tree | 781df0b1c657480e13c452349a6d47aea3391a91 /src | |
parent | 7cf74af07eb7b44052357cf733d6f03f0112dc25 (diff) |
Use QWeakPointer::toStrongRef().data() to get the raw pointer
Fixes a deprecation warning because QWeakPointer::data is deprecated
from 5.14 onwards.
Change-Id: I09b356b172cb9ffef880d6b97b4c6a9646203942
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index ee0b8cc39..052a71905 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -694,7 +694,7 @@ void WebContentsAdapter::load(const QWebEngineHttpRequest &request) } auto navigate = [](QWeakPointer<WebContentsAdapter> weakAdapter, const content::NavigationController::LoadURLParams ¶ms) { - WebContentsAdapter *adapter = weakAdapter.data(); + WebContentsAdapter *adapter = weakAdapter.toStrongRef().data(); if (!adapter) return; adapter->webContents()->GetController().LoadURLWithParams(params); |