Git: Initialize some member variables in constructor

Detected by CppCheck

Change-Id: I4dfafc75349a6f14e050cbf405f0b2dc9fce5cef
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2014-08-04 14:05:27 +02:00
parent 0dcadd449f
commit db72d6f5f6
2 changed files with 6 additions and 1 deletions

View File

@@ -266,6 +266,7 @@ void FetchContext::checkout()
GerritPlugin::GerritPlugin(QObject *parent)
: QObject(parent)
, m_parameters(new GerritParameters)
, m_gerritCommand(0), m_pushToGerritCommand(0)
{
}

View File

@@ -75,7 +75,11 @@ private:
MergeTool::MergeTool(QObject *parent) :
QObject(parent),
m_process(0),
m_gitClient(GitPlugin::instance()->gitClient())
m_mergeType(NormalMerge),
m_localState(UnknownState),
m_remoteState(UnknownState),
m_gitClient(GitPlugin::instance()->gitClient()),
m_merging(false)
{
}