From 4867a49618e0d6a476e0549aeca5134b2e3c5892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Martins?= Date: Sun, 18 Oct 2015 15:14:33 +0100 Subject: Use QStringRef in a bunch of places. Done automatically with clazy static analyzer. Change-Id: Ia0cf8fa24331ab102a3c3c30c2aa92ef1ba772e2 Reviewed-by: Simon Hausmann --- tools/qmlmin/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/qmlmin/main.cpp') diff --git a/tools/qmlmin/main.cpp b/tools/qmlmin/main.cpp index a3f2b92bde..82fdb92801 100644 --- a/tools/qmlmin/main.cpp +++ b/tools/qmlmin/main.cpp @@ -590,7 +590,7 @@ int runQmlmin(int argc, char *argv[]) } } else if (arg.startsWith(QLatin1String("-w"))) { bool ok; - width = arg.mid(2).toInt(&ok); + width = arg.midRef(2).toInt(&ok); if (!ok) { std::cerr << "qmlmin: argument to '-w' is invalid" << std::endl; -- cgit v1.2.3