OutputFormatter: Replace foreach with range-for

Change-Id: Ifb598350bb75d1375eec78f0b013c8cde6b1d763
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2019-03-10 17:58:33 +01:00
committed by André Hartmann
parent ea8a1c85c1
commit 4a0d23bafa

View File

@@ -80,7 +80,8 @@ void OutputFormatter::appendMessage(const QString &text, OutputFormat format)
void OutputFormatter::appendMessage(const QString &text, const QTextCharFormat &format)
{
foreach (const FormattedText &output, parseAnsi(text, format))
const QList<FormattedText> formattedTextList = parseAnsi(text, format);
for (const FormattedText &output : formattedTextList)
append(output.text, output.format);
}