forked from qt-creator/qt-creator
Utils: Move SynchronousProcess::normalizeNewlines to QtcProcess
Change-Id: I5ba8ba1061b04b032aafd08382d34ccb62272829 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include "ansiescapecodehandler.h"
|
||||
#include "fileinprojectfinder.h"
|
||||
#include "qtcassert.h"
|
||||
#include "synchronousprocess.h"
|
||||
#include "qtcprocess.h"
|
||||
#include "theme/theme.h"
|
||||
|
||||
#include <QDir>
|
||||
@@ -631,7 +631,7 @@ void OutputFormatter::appendMessage(const QString &text, OutputFormat format)
|
||||
d->prependCarriageReturn = false;
|
||||
out.prepend('\r');
|
||||
}
|
||||
out = SynchronousProcess::normalizeNewlines(out);
|
||||
out = QtcProcess::normalizeNewlines(out);
|
||||
if (out.endsWith('\r')) {
|
||||
d->prependCarriageReturn = true;
|
||||
out.chop(1);
|
||||
|
||||
Reference in New Issue
Block a user