diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-10 11:19:27 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-10 15:01:57 +0000 |
commit | b4195d51746d86f4aa459d07d14a328c7945981a (patch) | |
tree | ca13ba842a38e2514a923eb6a9ecadd439159110 /src/plugins/git/changeselectiondialog.h | |
parent | 7db0023e8c97336e0e449552410de674bbe2ffd0 (diff) |
Git: Modernize
* pragma once
* member initialization
* s/struct/class/
* Introduce a static GitPlugin::client() method and use it
Change-Id: Ifdcac86dd16f3cdba11d564d03e9a15f00a6afdb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/changeselectiondialog.h')
-rw-r--r-- | src/plugins/git/changeselectiondialog.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/plugins/git/changeselectiondialog.h b/src/plugins/git/changeselectiondialog.h index d04c88b3879..5fad19b836c 100644 --- a/src/plugins/git/changeselectiondialog.h +++ b/src/plugins/git/changeselectiondialog.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef CHANGESELECTIONDIALOG_H -#define CHANGESELECTIONDIALOG_H +#pragma once #include <coreplugin/id.h> @@ -60,7 +59,7 @@ class ChangeSelectionDialog : public QDialog Q_OBJECT public: ChangeSelectionDialog(const QString &workingDirectory, Core::Id id, QWidget *parent); - ~ChangeSelectionDialog(); + ~ChangeSelectionDialog() override; QString change() const; @@ -83,15 +82,13 @@ private: Ui::ChangeSelectionDialog *m_ui; - QProcess *m_process; + QProcess *m_process = nullptr; Utils::FileName m_gitExecutable; QProcessEnvironment m_gitEnvironment; - ChangeCommand m_command; - QStringListModel *m_changeModel; + ChangeCommand m_command = NoCommand; + QStringListModel *m_changeModel = nullptr; QString m_oldWorkingDir; }; } // namespace Internal } // namespace Git - -#endif // CHANGESELECTIONDIALOG_H |