Commit c3c19aaa authored by jkobus's avatar jkobus Committed by Jarek Kobus
Browse files

DiffEditor: remove unneeded local variables



Change-Id: Ibfe35171525f136d0a40707e0531b72d36a62349
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent bd10aa81
......@@ -1091,13 +1091,11 @@ static QList<FileData> readGitPatch(const QString &patch, bool ignoreWhitespace,
lastRightFileName = fileName;
lastOperation = FileData::ChangeFile;
} else {
const QString leftFileName = similarityRegExp.cap(1);
const QString rightFileName = similarityRegExp.cap(2);
lastLeftFileName = similarityRegExp.cap(1);
lastRightFileName = similarityRegExp.cap(2);
const QString operation = similarityRegExp.cap(3);
pos += similarityRegExp.matchedLength();
endOfLastHeader = pos;
lastLeftFileName = leftFileName;
lastRightFileName = rightFileName;
if (operation == QLatin1String("copy"))
lastOperation = FileData::CopyFile;
else if (operation == QLatin1String("rename"))
......
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