Remove unnecessary #if
Signed-off-by: comp500 <comp500@users.noreply.github.com>
This commit is contained in:
parent
a351d1834a
commit
1c3449e5a2
@ -65,11 +65,7 @@ QStringList LoggedProcess::reprocess(const QByteArray& data, QTextDecoder& decod
|
|||||||
m_leftover_line = "";
|
m_leftover_line = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
|
|
||||||
auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed);
|
auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed);
|
||||||
#else
|
|
||||||
auto lines = str.remove(QChar::CarriageReturn).split(QChar::LineFeed);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
m_leftover_line = lines.takeLast();
|
m_leftover_line = lines.takeLast();
|
||||||
return lines;
|
return lines;
|
||||||
|
Loading…
Reference in New Issue
Block a user