Commit 21845778 authored by Nikolai Kosjar's avatar Nikolai Kosjar

DiffEditor: Fix build

diffutils.cpp: In function 'QList<DiffEditor::RowData>
    DiffEditor::readLines(QStringRef, bool, bool*, bool*)':
diffutils.cpp:585:53: error: no match for 'operator+' (operand types are
    'QStringRef' and 'const QChar')

Change-Id: I44ad2237c033266d3832ce95174ec056ff7cae9f
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 70283a9e
...@@ -582,7 +582,7 @@ static QList<RowData> readLines(QStringRef patch, ...@@ -582,7 +582,7 @@ static QList<RowData> readLines(QStringRef patch,
break; break;
} }
Diff diffToBeAdded(command, line.mid(1) + newLine); Diff diffToBeAdded(command, line.mid(1).toString() + newLine);
if (!diffList.isEmpty() && diffList.last().command == command) if (!diffList.isEmpty() && diffList.last().command == command)
diffList.last().text.append(diffToBeAdded.text); diffList.last().text.append(diffToBeAdded.text);
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