diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2015-10-18 15:14:33 +0100 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2015-10-18 23:12:14 +0000 |
commit | 4867a49618e0d6a476e0549aeca5134b2e3c5892 (patch) | |
tree | 769bb64015acaa22e9c86d90cff4093877fc0ead /tools/qmlmin/main.cpp | |
parent | 35fa7aed1db1157a7189ff271ebd241ebe04d2cc (diff) |
Use QStringRef in a bunch of places.wip/dbus
Done automatically with clazy static analyzer.
Change-Id: Ia0cf8fa24331ab102a3c3c30c2aa92ef1ba772e2
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'tools/qmlmin/main.cpp')
-rw-r--r-- | tools/qmlmin/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |