X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fdatabases%2FCookiesDatabase.cpp;h=e8a870b82d15b00a034e05ccf1e233efb3cc9097;hp=dcb6f0b13cf95797b51c67f9a0e756736c42b707;hb=7c6edb3608791950c6146ac242e2b6f493ca8e8c;hpb=697f5cae65577dcdf01cfa85840de8d44d835358 diff --git a/src/databases/CookiesDatabase.cpp b/src/databases/CookiesDatabase.cpp index dcb6f0b..e8a870b 100644 --- a/src/databases/CookiesDatabase.cpp +++ b/src/databases/CookiesDatabase.cpp @@ -230,7 +230,7 @@ QList* CookiesDatabase::getCookies() // Instantiate a cookies query. QSqlQuery cookiesQuery(cookiesDatabase); - // Set the query to be forward only. + // Set the query to be forward only, which is more performant. cookiesQuery.setForwardOnly(true); // Prepare the cookies query. @@ -402,7 +402,7 @@ void CookiesDatabase::updateCookie(const QNetworkCookie &cookie) // Create the update cookie query. QSqlQuery updateCookieQuery(cookiesDatabase); - // Prepare the edit cookie query. + // Prepare the update cookie query. updateCookieQuery.prepare("UPDATE " + COOKIES_TABLE + " SET " + EXPIRATION_DATE + " = :expiration_date , " + HTTP_ONLY + " = :http_only , " +