Commit 92f30a0f authored by Laurent Montel's avatar Laurent Montel 😁

Initialize pointer

parent 2fe62a35
......@@ -38,7 +38,7 @@ private Q_SLOTS:
private:
Ui::AgentConfigDialog ui;
AgentConfigModel *m_model;
AgentConfigModel *m_model = nullptr;
Akonadi::AgentInstance m_instance;
};
......
......@@ -48,7 +48,7 @@ public Q_SLOTS:
private:
QVector<QPair<QString, QVariant> > m_settings;
QDBusInterface *m_interface;
QDBusInterface *m_interface = nullptr;
};
#endif
......@@ -75,7 +75,7 @@ public:
}
private:
KPIMTextEdit::PlainTextEditorWidget *mText;
KPIMTextEdit::PlainTextEditorWidget *mText = nullptr;
};
using namespace Akonadi;
......
......@@ -57,11 +57,11 @@ Q_SIGNALS:
void columnsChanged();
private:
State *m_currentState;
State *m_genericState;
State *m_mailState;
State *m_contactsState;
State *m_calendarState;
State *m_currentState = nullptr;
State *m_genericState = nullptr;
State *m_mailState = nullptr;
State *m_contactsState = nullptr;
State *m_calendarState = nullptr;
ItemDisplayMode m_itemDisplayMode;
};
......
......@@ -40,7 +40,7 @@ private Q_SLOTS:
private:
int mTabCounter;
QTabWidget *mTabWidget;
QTabWidget *mTabWidget = nullptr;
};
class DbConsoleTab : public QWidget
......@@ -61,7 +61,7 @@ private Q_SLOTS:
private:
Ui::DbConsoleTab ui;
QSqlQueryModel *mQueryModel;
QSqlQueryModel *mQueryModel = nullptr;
int mIndex;
};
......
......@@ -55,10 +55,10 @@ private Q_SLOTS:
void closeAllTabs();
private:
KTextEdit *mGeneralView;
QTabWidget *mConnectionPages;
KTextEdit *mGeneralView = nullptr;
QTabWidget *mConnectionPages = nullptr;
QHash<QString, ConnectionPage *> mPageHash;
org::freedesktop::Akonadi::DebugInterface *mDebugInterface;
org::freedesktop::Akonadi::DebugInterface *mDebugInterface = nullptr;
};
#endif
......@@ -53,7 +53,7 @@ private:
QScopedPointer<Ui::InstanceSelector> ui;
QString m_remoteHost;
QString m_instance;
MainWindow *mWindow;
MainWindow *mWindow = nullptr;
};
#endif // INSTANCESELECTOR_H
......@@ -41,9 +41,9 @@ private Q_SLOTS:
void slotColumnChanged(int index);
private:
QLineEdit *mSearchLineEdit;
QComboBox *mSelectColumn;
QCheckBox *mSelectOnlyError;
QLineEdit *mSearchLineEdit = nullptr;
QComboBox *mSelectColumn = nullptr;
QCheckBox *mSelectOnlyError = nullptr;
};
#endif // JOBTRACKERSEARCHWIDGET_H
......@@ -42,10 +42,10 @@
class JobTrackerWidget::Private
{
public:
JobTrackerModel *model;
QTreeView *tv;
JobTrackerFilterProxyModel *filterProxyModel;
JobTrackerSearchWidget *searchLineEditWidget;
JobTrackerModel *model = nullptr;
QTreeView *tv = nullptr;
JobTrackerFilterProxyModel *filterProxyModel = nullptr;
JobTrackerSearchWidget *searchLineEditWidget = nullptr;
};
JobTrackerWidget::JobTrackerWidget(const char *name, QWidget *parent, const QString &checkboxText)
......
......@@ -42,7 +42,7 @@ private Q_SLOTS:
void restartServer();
private:
BrowserWidget *mBrowser;
BrowserWidget *mBrowser = nullptr;
};
#endif
......@@ -34,8 +34,8 @@ public:
virtual ~MonitorsWidget();
private:
QTreeView *mTreeView;
MonitorsModel *mModel;
QTreeView *mTreeView = nullptr;
MonitorsModel *mModel = nullptr;
};
#endif // MONITORSWIDGET_H
......@@ -46,7 +46,7 @@ public:
virtual QVariant data(int column) const = 0;
NotificationModel::Item *parent;
NotificationModel::Item *parent = nullptr;
QVector<Item *> nodes;
int type;
};
......
......@@ -73,7 +73,7 @@ private:
QList<Item *> m_data;
Akonadi::Monitor *m_monitor;
Akonadi::Monitor *m_monitor = nullptr;
};
#endif
......@@ -39,7 +39,7 @@ private Q_SLOTS:
private:
void writeRows(const QModelIndex &parent, QFile &file, int indentLevel);
NotificationModel *m_model;
NotificationModel *m_model = nullptr;
};
#endif
......@@ -72,10 +72,10 @@ private:
QString variantToString(const QVariant &val);
QScopedPointer<Ui::QueryDebugger> mUi;
OrgFreedesktopAkonadiStorageDebuggerInterface *mDebugger;
OrgFreedesktopAkonadiStorageDebuggerInterface *mDebugger = nullptr;
QueryDebuggerModel *mQueryList;
QueryTreeModel *mQueryTree;
QueryDebuggerModel *mQueryList = nullptr;
QueryTreeModel *mQueryTree = nullptr;
};
#endif // QUERYDEBUGGER_H
......@@ -59,17 +59,17 @@ private Q_SLOTS:
private:
void xapianError(const Xapian::Error &e);
KComboBox *mStoreCombo;
QTextBrowser *mItemView;
KPIMTextEdit::PlainTextEditorWidget *mQueryWidget;
QListView *mDatabaseView;
QStandardItemModel *mDocumentModel;
QTreeView *mDocumentView;
QStandardItemModel *mTermModel;
QSplitter *mHSplitter;
QSplitter *mVSplitter;
KComboBox *mStoreCombo = nullptr;
QTextBrowser *mItemView = nullptr;
KPIMTextEdit::PlainTextEditorWidget *mQueryWidget = nullptr;
QListView *mDatabaseView = nullptr;
QStandardItemModel *mDocumentModel = nullptr;
QTreeView *mDocumentView = nullptr;
QStandardItemModel *mTermModel = nullptr;
QSplitter *mHSplitter = nullptr;
QSplitter *mVSplitter = nullptr;
Xapian::Database *mDatabase;
Xapian::Database *mDatabase = nullptr;
};
#endif
......@@ -57,8 +57,8 @@ private:
Ui::TagPropertiesDialog ui;
Akonadi::Tag mTag;
QStandardItemModel *mAttributesModel;
QStandardItemModel *mRemoteIdsModel;
QStandardItemModel *mAttributesModel = nullptr;
QStandardItemModel *mRemoteIdsModel = nullptr;
bool mChanged;
QSet<QString> mChangedAttrs;
......
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