forked from qt-creator/qt-creator
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:
@@ -28,7 +28,6 @@
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
@@ -39,12 +38,6 @@ void GitSubmitEditorPanelInfo::clear()
|
||||
branch.clear();
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug d, const GitSubmitEditorPanelInfo &data)
|
||||
{
|
||||
d.nospace() << "Rep: " << data.repository << " branch: " << data.branch;
|
||||
return d;
|
||||
}
|
||||
|
||||
void GitSubmitEditorPanelData::clear()
|
||||
{
|
||||
author.clear();
|
||||
@@ -67,14 +60,6 @@ QString GitSubmitEditorPanelData::authorString() const
|
||||
return rc;
|
||||
}
|
||||
|
||||
QDebug operator<<(QDebug d, const GitSubmitEditorPanelData &data)
|
||||
{
|
||||
d.nospace() << " author:" << data.author << " email: " << data.email
|
||||
<< " bypass hooks: " << data.bypassHooks
|
||||
<< " action after commit " << data.pushAction;
|
||||
return d;
|
||||
}
|
||||
|
||||
CommitData::CommitData(CommitType type)
|
||||
: commitType(type)
|
||||
, commitEncoding(0)
|
||||
|
||||
Reference in New Issue
Block a user