diff options
| author | hjk <hjk@qt.io> | 2025-04-29 11:17:30 +0200 |
|---|---|---|
| committer | hjk <hjk@qt.io> | 2025-04-29 09:26:32 +0000 |
| commit | fe531818c58ad375d96e90710f37daf973df1f7f (patch) | |
| tree | 8492f49adc6eb459c67cb45b637fc1f8086890ac /src/plugins/git/commitdata.h | |
| parent | a1dea6b28399ea3679212863683a6e49f2d6894c (diff) | |
Git: Initialize GitSubmitEditorPanelData
... and remove the since 6e552e43416df72 unused clear() methods of
CommitData members.
Amends 6e552e43416df72.
Change-Id: I94d1cad5266306057330f076149b996dff9a0828
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/git/commitdata.h')
| -rw-r--r-- | src/plugins/git/commitdata.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/git/commitdata.h b/src/plugins/git/commitdata.h index f804fd06993..b83b36c2699 100644 --- a/src/plugins/git/commitdata.h +++ b/src/plugins/git/commitdata.h @@ -20,7 +20,6 @@ namespace Git::Internal { class GitSubmitEditorPanelInfo { public: - void clear(); Utils::FilePath repository; QString branch; }; @@ -34,15 +33,14 @@ enum PushAction { class GitSubmitEditorPanelData { public: - void clear(); // Format as "John Doe <jdoe@foobar.com>" QString authorString() const; QString author; QString email; - bool bypassHooks; - PushAction pushAction; - bool signOff; + bool bypassHooks = false; + PushAction pushAction = NoPush; + bool signOff = false; }; enum FileState { |
