From 5fe7f60a152ace8fb6da378c6fcb83ba0c2c9f59 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 14 Dec 2017 18:40:27 +0100 Subject: Using Q_CHECK_PTR instead of Q_ASSERT on pointers --- src/widgets/webviewtabbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/webviewtabbar.cpp') diff --git a/src/widgets/webviewtabbar.cpp b/src/widgets/webviewtabbar.cpp index f8d3dc1..0baf68a 100644 --- a/src/widgets/webviewtabbar.cpp +++ b/src/widgets/webviewtabbar.cpp @@ -86,7 +86,7 @@ int WebViewTabBar::addTab(const QUrl &url) void WebViewTabBar::setProfile(WebEngineProfile *profile) { - Q_ASSERT(profile != nullptr); + Q_CHECK_PTR(profile); m_profile = profile; for(auto view : qAsConst(m_views)) { -- cgit v1.2.1