forked from qt-creator/qt-creator
Git: Small simplification to Gerrit "plugin" setup
The indirection is not needed. It's not really stand-alone, and not touched before GitPlugin::initialize(). Change-Id: If8552dc69ff9efa18a3f1d6d998a8f28ab65e501 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -152,16 +152,15 @@ void FetchContext::checkout()
|
||||
GitClient::instance()->checkout(m_repository, "FETCH_HEAD");
|
||||
}
|
||||
|
||||
GerritPlugin::GerritPlugin(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_parameters(new GerritParameters)
|
||||
GerritPlugin::GerritPlugin()
|
||||
: m_parameters(new GerritParameters)
|
||||
, m_server(new GerritServer)
|
||||
{
|
||||
}
|
||||
|
||||
GerritPlugin::~GerritPlugin() = default;
|
||||
|
||||
void GerritPlugin::initialize(ActionContainer *ac)
|
||||
void GerritPlugin::addToMenu(ActionContainer *ac)
|
||||
{
|
||||
m_parameters->fromSettings(ICore::settings());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user