Commit 891c9788 authored by Laurent Montel's avatar Laurent Montel 😁

Make as explicit, use nullptr

parent eac3606e
......@@ -30,7 +30,7 @@ class SolidHelper
{
public:
SolidHelper() {};
SolidHelper() {}
Solid::DeviceInterface::Type deviceType(const Solid::Device *);
};
......
......@@ -33,8 +33,9 @@ class QWidget;
#include "base.h"
class Chart : public QWidget {
Q_OBJECT
public:
Chart(QWidget* parent = nullptr);
explicit Chart(QWidget* parent = nullptr);
void setMemoryInfos(t_memsize* memoryInfos);
void setFreeMemoryLabel(QLabel* freeMemoryLabel);
......@@ -45,9 +46,9 @@ protected:
bool drawChart(t_memsize total, const QList<t_memsize>& used, const QList<QColor>& colors, const QList<QString>& texts);
t_memsize* memoryInfos;
t_memsize* memoryInfos = nullptr;
QLabel* freeMemoryLabel;
QLabel* freeMemoryLabel = nullptr;
};
......@@ -64,11 +65,11 @@ public:
private:
QLabel* titleLabel;
QLabel* titleLabel = nullptr;
Chart* chart;
Chart* chart = nullptr;
QLabel* freeMemoryLabel;
QLabel* freeMemoryLabel = nullptr;
};
......
......@@ -35,7 +35,7 @@ public:
/**
* Initialize the list view item and task.
*/
SwapMemoryChart(QWidget* parent = nullptr);
explicit SwapMemoryChart(QWidget* parent = nullptr);
protected:
......
......@@ -35,7 +35,7 @@ public:
/**
* Initialize the list view item and task.
*/
TotalMemoryChart(QWidget* parent = nullptr);
explicit TotalMemoryChart(QWidget* parent = nullptr);
protected:
......
......@@ -51,7 +51,7 @@ class InfoKcmModel : public QAbstractItemModel
*
* @param parent objects parent
*/
InfoKcmModel(QObject *parent);
explicit InfoKcmModel(QObject *parent);
~InfoKcmModel();
......
......@@ -41,7 +41,7 @@ class InfoKcmProxyModel : public QSortFilterProxyModel
*
* @param parent objects parent
*/
InfoKcmProxyModel(QObject *parent);
explicit InfoKcmProxyModel(QObject *parent);
/**
* Check if left item is less than right item
......
......@@ -49,7 +49,7 @@ class SidePanel : public QTreeView
*
* @param parent objects parent
*/
SidePanel(QWidget *parent);
explicit SidePanel(QWidget *parent);
/**
* Destory SidePanel object
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment