From e6abd607aab3e7b1cb12507e6b6c93e0e44d2fca Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Mon, 13 Oct 2014 16:15:56 +0200 Subject: [PATCH] Minor performance fixes --- src/database.cpp | 2 +- src/video.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/database.cpp b/src/database.cpp index 5d8a482..3e7c537 100644 --- a/src/database.cpp +++ b/src/database.cpp @@ -180,7 +180,7 @@ void Database::drop() { while (query.next()) { QString tableName = query.value(0).toString(); - if (tableName.startsWith("sqlite_") || tableName == "attributes") continue; + if (tableName.startsWith("sqlite_") || tableName == QLatin1String("attributes")) continue; QString dropSQL = "delete from " + tableName; QSqlQuery query2(db); if (!query2.exec(dropSQL)) diff --git a/src/video.cpp b/src/video.cpp index 8f61dd0..64cbf6d 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -357,7 +357,7 @@ void Video::scrapeWebPage(QByteArray data) { #ifdef APP_DASH QSettings settings; QString definitionName = settings.value("definition", "360p").toString(); - if (definitionName == "1080p") { + if (definitionName == QLatin1String("1080p") { QRegExp dashManifestRe("\"dashmpd\":\\s*\"([^\"]+)\""); if (dashManifestRe.indexIn(html) != -1) { dashManifestUrl = dashManifestRe.cap(1); -- 2.39.5