Commit 3558c0cd authored by Jędrzej Nowacki's avatar Jędrzej Nowacki Committed by The Qt Project
Browse files

Minor optimization use QString midRef instead of mid.


It doesn't create a temporary string.

Change-Id: If5c540422f69e573107d1f5a886ac7174ae99853
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent a6c79344
Branches
Tags
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -609,7 +609,7 @@ bool QSQLiteDriver::open(const QString & db, const QString &, const QString &, c
foreach (const QString &option, opts) {
if (option.startsWith(QLatin1String("QSQLITE_BUSY_TIMEOUT="))) {
bool ok;
const int nt = option.mid(21).toInt(&ok);
const int nt = option.midRef(21).toInt(&ok);
if (ok)
timeOut = nt;
} else if (option == QLatin1String("QSQLITE_OPEN_READONLY")) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment