aboutsummaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-14 18:40:27 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-14 18:40:27 +0100
commit5fe7f60a152ace8fb6da378c6fcb83ba0c2c9f59 (patch)
treefe2a313250b9fdff8c396226734016fabb4b2717 /src/widgets
parentUpdated documentation (diff)
downloadsmolbote-5fe7f60a152ace8fb6da378c6fcb83ba0c2c9f59.tar.xz
Using Q_CHECK_PTR instead of Q_ASSERT on pointers
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/mainwindowmenubar.cpp2
-rw-r--r--src/widgets/webviewtabbar.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/mainwindowmenubar.cpp b/src/widgets/mainwindowmenubar.cpp
index 2f6c1af..aef61b4 100644
--- a/src/widgets/mainwindowmenubar.cpp
+++ b/src/widgets/mainwindowmenubar.cpp
@@ -30,7 +30,7 @@ MainWindowMenuBar::MainWindowMenuBar(std::shared_ptr<Configuration> config, Main
QMenuBar(parent)
{
Q_ASSERT(config);
- Q_ASSERT(parent);
+ Q_CHECK_PTR(parent);
// Browser menu
QMenu *browserMenu = new QMenu(qApp->applicationName(), this);
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)) {