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>
This commit is contained in:
Tobias Hunger
2016-02-10 11:19:27 +01:00
parent 7db0023e8c
commit b4195d5174
47 changed files with 229 additions and 419 deletions

View File

@@ -23,8 +23,7 @@
**
****************************************************************************/
#ifndef BRANCHCHECKOUTDIALOG_H
#define BRANCHCHECKOUTDIALOG_H
#pragma once
#include <QDialog>
@@ -40,7 +39,7 @@ class BranchCheckoutDialog : public QDialog
public:
explicit BranchCheckoutDialog(QWidget *parent, const QString &currentBranch,
const QString &nextBranch);
~BranchCheckoutDialog();
~BranchCheckoutDialog() override;
void foundNoLocalChanges();
void foundStashForNextBranch();
@@ -63,5 +62,3 @@ private:
} // namespace Internal
} // namespace Git
#endif // BRANCHCHECKOUTDIALOG_H