From a6a80f4bf83eaa1894b83755ec8785af5ed4559f Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 23 Mar 2020 22:50:05 +0200 Subject: Fix various compiler warnings --- src/webengine/webpage.cpp | 2 +- src/webengine/webview.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/webengine') diff --git a/src/webengine/webpage.cpp b/src/webengine/webpage.cpp index 15d2322..e79db9d 100644 --- a/src/webengine/webpage.cpp +++ b/src/webengine/webpage.cpp @@ -122,7 +122,7 @@ void WebPage::renderProcessCrashed(QWebEnginePage::RenderProcessTerminationStatu "

Press here to reload this tab.

") .arg(tr_terminationStatus(terminationStatus), QString::number(exitCode), this->url().toEncoded())); - QTimer::singleShot(0, this, [=]() { + QTimer::singleShot(0, this, [this, page]() { setHtml(page.toUtf8(), url()); }); } diff --git a/src/webengine/webview.h b/src/webengine/webview.h index e5cd7fb..0223b78 100644 --- a/src/webengine/webview.h +++ b/src/webengine/webview.h @@ -47,7 +47,7 @@ private: SubWindow *m_parentWindow = nullptr; WebProfile *m_profile = nullptr; - bool m_loaded; + bool m_loaded = false; }; #endif // SMOLBOTE_WEBVIEW_H -- cgit v1.2.1