diff options
author | Tobias Hunger <[email protected]> | 2016-02-10 11:19:27 +0100 |
---|---|---|
committer | Tobias Hunger <[email protected]> | 2016-02-10 15:01:57 +0000 |
commit | b4195d51746d86f4aa459d07d14a328c7945981a (patch) | |
tree | ca13ba842a38e2514a923eb6a9ecadd439159110 /src/plugins/git/gitclient.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 <[email protected]>
Diffstat (limited to 'src/plugins/git/gitclient.h')
-rw-r--r-- | src/plugins/git/gitclient.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/plugins/git/gitclient.h b/src/plugins/git/gitclient.h index 2e6f367e830..e6b1c3d370b 100644 --- a/src/plugins/git/gitclient.h +++ b/src/plugins/git/gitclient.h @@ -23,8 +23,7 @@ ** ****************************************************************************/ -#ifndef GITCLIENT_H -#define GITCLIENT_H +#pragma once #include "gitsettings.h" #include "commitdata.h" @@ -71,7 +70,7 @@ namespace Git { namespace Internal { class CommitData; -struct GitSubmitEditorPanelData; +class GitSubmitEditorPanelData; class Stash; enum StatusMode @@ -108,7 +107,7 @@ public: class StashInfo { public: - StashInfo(); + StashInfo() = default; enum StashResult { StashUnchanged, StashCanceled, StashFailed, Stashed, NotStashed /* User did not want it */ }; @@ -126,9 +125,8 @@ public: StashResult m_stashResult; QString m_message; QString m_workingDir; - GitClient *m_client; StashFlag m_flags; - PushAction m_pushAction; + PushAction m_pushAction = NoPush; }; static const char *stashNamePrefix; @@ -340,7 +338,6 @@ public: static QString msgNoChangedFiles(); static QString msgNoCommits(bool includeRemote); -public slots: void show(const QString &source, const QString &id, const QString &name = QString()); private: @@ -401,5 +398,3 @@ private: } // namespace Internal } // namespace Git - -#endif // GITCLIENT_H |