diff options
| author | Montel Laurent <[email protected]> | 2017-11-03 08:01:02 +0100 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2017-11-03 14:54:06 +0100 |
| commit | ff3f476ed816cff5fc38117979d181707f934639 (patch) | |
| tree | 3caabc1f9699531bb1c0b13a0f57092c3cf06490 /src/panels/places | |
| parent | d1acb1d56e18f4adef3eba7fc61facb1db5deb75 (diff) | |
Use nullptr + add explicit keyword
Test Plan: compile
Reviewers: #dolphin, broulik
Reviewed By: broulik
Subscribers: #dolphin
Differential Revision: https://phabricator.kde.org/D8637
Diffstat (limited to 'src/panels/places')
| -rw-r--r-- | src/panels/places/placesitem.cpp | 4 | ||||
| -rw-r--r-- | src/panels/places/placesitemsignalhandler.h | 2 | ||||
| -rw-r--r-- | src/panels/places/placespanel.cpp | 9 | ||||
| -rw-r--r-- | src/panels/places/placespanel.h | 2 | ||||
| -rw-r--r-- | src/panels/places/placesview.h | 2 |
5 files changed, 10 insertions, 9 deletions
diff --git a/src/panels/places/placesitem.cpp b/src/panels/places/placesitem.cpp index 5b8e5dbef..93cc4d5c3 100644 --- a/src/panels/places/placesitem.cpp +++ b/src/panels/places/placesitem.cpp @@ -37,8 +37,8 @@ PlacesItem::PlacesItem(const KBookmark& bookmark, PlacesItem* parent) : m_volume(), m_disc(), m_mtp(), - m_signalHandler(0), - m_trashDirLister(0), + m_signalHandler(nullptr), + m_trashDirLister(nullptr), m_bookmark() { m_signalHandler = new PlacesItemSignalHandler(this); diff --git a/src/panels/places/placesitemsignalhandler.h b/src/panels/places/placesitemsignalhandler.h index f65b57fe1..6110f717d 100644 --- a/src/panels/places/placesitemsignalhandler.h +++ b/src/panels/places/placesitemsignalhandler.h @@ -47,7 +47,7 @@ class PlacesItemSignalHandler: public QObject Q_OBJECT public: - explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = 0); + explicit PlacesItemSignalHandler(PlacesItem* item, QObject* parent = nullptr); virtual ~PlacesItemSignalHandler(); public slots: diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp index 0ce6d69a5..0b76f18d3 100644 --- a/src/panels/places/placespanel.cpp +++ b/src/panels/places/placespanel.cpp @@ -58,13 +58,14 @@ PlacesPanel::PlacesPanel(QWidget* parent) : Panel(parent), - m_controller(0), - m_model(0), + m_controller(nullptr), + m_model(nullptr), + m_view(nullptr), m_storageSetupFailedUrl(), m_triggerStorageSetupButton(), m_itemDropEventIndex(-1), - m_itemDropEventMimeData(0), - m_itemDropEvent(0) + m_itemDropEventMimeData(nullptr), + m_itemDropEvent(nullptr) { } diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index 13a38df2d..4e525a037 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -39,7 +39,7 @@ class PlacesPanel : public Panel Q_OBJECT public: - PlacesPanel(QWidget* parent); + explicit PlacesPanel(QWidget* parent); virtual ~PlacesPanel(); void proceedWithTearDown(); diff --git a/src/panels/places/placesview.h b/src/panels/places/placesview.h index 19c99c39b..ba7193525 100644 --- a/src/panels/places/placesview.h +++ b/src/panels/places/placesview.h @@ -32,7 +32,7 @@ class PlacesView : public KStandardItemListView Q_OBJECT public: - explicit PlacesView(QGraphicsWidget* parent = 0); + explicit PlacesView(QGraphicsWidget* parent = nullptr); void setIconSize(int size); int iconSize() const; |
