Commit a1c8bbe2 authored by Laurent Montel's avatar Laurent Montel 😁

initialize pointer/values

parent c87209c4
......@@ -52,7 +52,7 @@ Q_SIGNALS:
protected:
void closeEvent(QCloseEvent *e) override;
QDialogButtonBox *m_buttons;
QDialogButtonBox * m_buttons = nullptr;
};
#endif
......@@ -46,7 +46,7 @@ public:
QList<QUrl> selectedFiles() override;
protected:
KFileWidget *m_fileWidget;
KFileWidget *const m_fileWidget;
};
class KDEPlatformFileDialogHelper : public QPlatformFileDialogHelper
......@@ -81,7 +81,7 @@ private Q_SLOTS:
private:
void restoreSize();
KDEPlatformFileDialogBase *m_dialog;
KDEPlatformFileDialogBase *m_dialog = nullptr;
bool m_directorySet = false;
bool m_fileSelected = false;
bool m_dialogInitialized = false;
......
......@@ -304,7 +304,6 @@ QAction *SystemTrayMenuItem::action() const
KDEPlatformSystemTrayIcon::KDEPlatformSystemTrayIcon()
: QPlatformSystemTrayIcon()
, m_sni(nullptr)
{
}
......
......@@ -115,7 +115,7 @@ public:
QPlatformMenu *createMenu() const override;
private:
KStatusNotifierItem *m_sni;
KStatusNotifierItem *m_sni = nullptr;
};
#endif
......@@ -68,8 +68,7 @@ public:
Private(bool localOnly, KDirSelectDialog *parent)
: m_parent(parent),
m_localOnly(localOnly),
m_comboLocked(false),
m_urlCombo(nullptr)
m_comboLocked(false)
{
}
......@@ -87,21 +86,21 @@ public:
void slotDelete();
void slotProperties();
KDirSelectDialog *m_parent;
KDirSelectDialog *const m_parent;
bool m_localOnly : 1;
bool m_comboLocked : 1;
QUrl m_rootUrl;
QUrl m_startDir;
KFileTreeView *m_treeView;
QMenu *m_contextMenu;
KActionCollection *m_actions;
KFilePlacesView *m_placesView;
KHistoryComboBox *m_urlCombo;
KFileTreeView *m_treeView = nullptr;
QMenu *m_contextMenu = nullptr;
KActionCollection *m_actions = nullptr;
KFilePlacesView *m_placesView = nullptr;
KHistoryComboBox *m_urlCombo = nullptr;
QString m_recentDirClass;
QUrl m_startURL;
QAction *moveToTrash;
QAction *deleteAction;
QAction *showHiddenFoldersAction;
QAction *moveToTrash = nullptr;
QAction *deleteAction = nullptr;
QAction *showHiddenFoldersAction = nullptr;
};
void KDirSelectDialog::Private::readConfig(const KSharedConfig::Ptr &config, const QString &group)
......
......@@ -47,9 +47,9 @@ public:
void _k_currentChanged(const QModelIndex &, const QModelIndex &);
void _k_expanded(const QModelIndex &);
KFileTreeView *q;
KDirModel *mSourceModel;
KDirSortFilterProxyModel *mProxyModel;
KFileTreeView *const q;
KDirModel *mSourceModel = nullptr;
KDirSortFilterProxyModel *mProxyModel = nullptr;
};
QUrl KFileTreeView::Private::urlForProxyIndex(const QModelIndex &index) const
......
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