Commit db72d6f5 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Git: Initialize some member variables in constructor



Detected by CppCheck

Change-Id: I4dfafc75349a6f14e050cbf405f0b2dc9fce5cef
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 0dcadd44
......@@ -266,6 +266,7 @@ void FetchContext::checkout()
GerritPlugin::GerritPlugin(QObject *parent)
: QObject(parent)
, m_parameters(new GerritParameters)
, m_gerritCommand(0), m_pushToGerritCommand(0)
{
}
......
......@@ -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)
{
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment