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/lib/navigation/urllineedit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/navigation/urllineedit.cpp b/src/lib/navigation/urllineedit.cpp index 4244866..c587f43 100644 --- a/src/lib/navigation/urllineedit.cpp +++ b/src/lib/navigation/urllineedit.cpp @@ -89,13 +89,13 @@ UrlLineEdit::UrlLineEdit(QWidget *parent) : QAction *UrlLineEdit::sslAction() { - Q_ASSERT(m_sslAction != nullptr); + Q_CHECK_PTR(m_sslAction); return m_sslAction; } QAction *UrlLineEdit::pageAction() { - Q_ASSERT(m_pageAction != nullptr); + Q_CHECK_PTR(m_pageAction); return m_pageAction; } -- cgit v1.2.1