summaryrefslogtreecommitdiff
path: root/src/app/qbs-setup-toolchains/dmcprobe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/qbs-setup-toolchains/dmcprobe.cpp')
-rw-r--r--src/app/qbs-setup-toolchains/dmcprobe.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app/qbs-setup-toolchains/dmcprobe.cpp b/src/app/qbs-setup-toolchains/dmcprobe.cpp
index cbe113dfd..097b1caed 100644
--- a/src/app/qbs-setup-toolchains/dmcprobe.cpp
+++ b/src/app/qbs-setup-toolchains/dmcprobe.cpp
@@ -105,8 +105,7 @@ static QStringList dumpOutput(const QFileInfo &compiler, const QStringList &flag
p.waitForFinished(3000);
fakeIn.remove();
static QRegularExpression re(QLatin1String("\\r?\\n"));
- const QStringList lines = QString::fromUtf8(p.readAllStandardOutput()).split(re);
- return lines;
+ return QString::fromUtf8(p.readAllStandardOutput()).split(re);
}
static std::optional<Target> dumpDmcTarget(const QFileInfo &compiler, const QStringList &flags)