1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

BookmarksToolbar: Initialize actions with nullptr

Closes #2166
This commit is contained in:
David Rosca 2017-01-14 17:54:08 +01:00
parent 4504d750c6
commit 3274634539
2 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
*
* 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()

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2010-2017 David Rosca <nowrep@gmail.com>
*
* 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