aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/remotedialog.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-10 11:19:27 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-10 15:01:57 +0000
commitb4195d51746d86f4aa459d07d14a328c7945981a (patch)
treeca13ba842a38e2514a923eb6a9ecadd439159110 /src/plugins/git/remotedialog.h
parent7db0023e8c97336e0e449552410de674bbe2ffd0 (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/remotedialog.h')
-rw-r--r--src/plugins/git/remotedialog.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/plugins/git/remotedialog.h b/src/plugins/git/remotedialog.h
index 444c835b9c2..dab24c9b2d1 100644
--- a/src/plugins/git/remotedialog.h
+++ b/src/plugins/git/remotedialog.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef REMOTEDIALOG_H
-#define REMOTEDIALOG_H
+#pragma once
#include <QDialog>
@@ -34,7 +33,7 @@ namespace Internal {
namespace Ui {
class RemoteDialog;
class RemoteAdditionDialog;
-}
+} // namespace Ui
class GitClient;
class RemoteModel;
@@ -49,7 +48,7 @@ class RemoteAdditionDialog : public QDialog
public:
explicit RemoteAdditionDialog(QWidget *parent = 0);
- ~RemoteAdditionDialog();
+ ~RemoteAdditionDialog() override;
QString remoteName() const;
QString remoteUrl() const;
@@ -70,9 +69,8 @@ class RemoteDialog : public QDialog
public:
explicit RemoteDialog(QWidget *parent = 0);
- ~RemoteDialog();
+ ~RemoteDialog() override;
-public slots:
void refresh(const QString &repository, bool force);
private:
@@ -87,10 +85,8 @@ private:
Ui::RemoteDialog *m_ui;
RemoteModel *m_remoteModel;
- RemoteAdditionDialog *m_addDialog;
+ RemoteAdditionDialog *m_addDialog = nullptr;
};
} // namespace Internal
} // namespace Git
-
-#endif // REMOTEDIALOG_H