From 3274634539fbe18df32de247eefa69122f650f0c Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 14 Jan 2017 17:54:08 +0100 Subject: [PATCH] BookmarksToolbar: Initialize actions with nullptr Closes #2166 --- src/lib/bookmarks/bookmarkstoolbar.cpp | 10 +++++----- src/lib/bookmarks/bookmarkstoolbar.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/bookmarks/bookmarkstoolbar.cpp b/src/lib/bookmarks/bookmarkstoolbar.cpp index 0e86785a6..b16ee20f4 100644 --- a/src/lib/bookmarks/bookmarkstoolbar.cpp +++ b/src/lib/bookmarks/bookmarkstoolbar.cpp @@ -1,6 +1,6 @@ /* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2010-2016 David Rosca +* QupZilla - Qt web browser +* Copyright (C) 2010-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -105,9 +105,9 @@ void BookmarksToolbar::contextMenuRequested(const QPoint &pos) button->update(); } - m_clickedBookmark = 0; - m_actShowOnlyIcons = 0; - m_actShowOnlyText = 0; + m_clickedBookmark = nullptr; + m_actShowOnlyIcons = nullptr; + m_actShowOnlyText = nullptr; } void BookmarksToolbar::refresh() diff --git a/src/lib/bookmarks/bookmarkstoolbar.h b/src/lib/bookmarks/bookmarkstoolbar.h index 7fb65f27b..f3f39e98e 100644 --- a/src/lib/bookmarks/bookmarkstoolbar.h +++ b/src/lib/bookmarks/bookmarkstoolbar.h @@ -1,6 +1,6 @@ /* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2010-2014 David Rosca +* QupZilla - Qt web browser +* Copyright (C) 2010-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -63,8 +63,8 @@ private: BookmarkItem* m_clickedBookmark; QHBoxLayout* m_layout; QTimer* m_updateTimer; - QAction* m_actShowOnlyIcons; - QAction* m_actShowOnlyText; + QAction* m_actShowOnlyIcons = nullptr; + QAction* m_actShowOnlyText = nullptr; }; #endif // BOOKMARKSTOOLBAR_H