From 0780c1d7634d4e7c9314deba14f370d1f2a14ea6 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 10 Sep 2015 18:03:02 +0300 Subject: [PATCH] Git: Fix compilation with GCC 4.8 Change-Id: I47e2ac73a7afdd5c44c054bab54bc454973a1fa7 Reviewed-by: Robert Loehning --- src/plugins/git/gitclient.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 22e29e14e7c..9d5eff752c0 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -158,8 +158,8 @@ void BaseController::runCommand(const QList &args, QTextCodec *code m_command = new VcsCommand(m_directory, gitClient()->processEnvironment()); m_command->setCodec(codec ? codec : EditorManager::defaultTextCodec()); - connect(m_command, &VcsCommand::stdOutText, this, &BaseController::processOutput); - connect(m_command, &VcsCommand::finished, this, &BaseController::reloadFinished); + connect(m_command.data(), &VcsCommand::stdOutText, this, &BaseController::processOutput); + connect(m_command.data(), &VcsCommand::finished, this, &BaseController::reloadFinished); m_command->addFlags(diffExecutionFlags()); foreach (const QStringList &arg, args) { @@ -173,7 +173,7 @@ void BaseController::runCommand(const QList &args, QTextCodec *code void BaseController::processDiff(const QString &output) { - m_command = 0; + m_command.clear(); bool ok; QList fileDataList = DiffUtils::readPatch(output, &ok);