diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-14 18:40:27 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-14 18:40:27 +0100 |
commit | 5fe7f60a152ace8fb6da378c6fcb83ba0c2c9f59 (patch) | |
tree | fe2a313250b9fdff8c396226734016fabb4b2717 /src/forms | |
parent | Updated documentation (diff) | |
download | smolbote-5fe7f60a152ace8fb6da378c6fcb83ba0c2c9f59.tar.xz |
Using Q_CHECK_PTR instead of Q_ASSERT on pointers
Diffstat (limited to 'src/forms')
-rw-r--r-- | src/forms/profileview.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/forms/profileview.cpp b/src/forms/profileview.cpp index 2695311..6977b61 100644 --- a/src/forms/profileview.cpp +++ b/src/forms/profileview.cpp @@ -57,10 +57,7 @@ ProfileView::~ProfileView() void ProfileView::setProfile(WebEngineProfile *profile) { - if(!profile) { - return; - } - //Q_ASSERT(profile); + Q_CHECK_PTR(profile); m_profile = profile; setWindowTitle(m_profile->name()); |