]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/databases/CookiesDatabase.cpp
Partial bookmark implementation. https://redmine.stoutner.com/issues/968
[PrivacyBrowserPC.git] / src / databases / CookiesDatabase.cpp
index dcb6f0b13cf95797b51c67f9a0e756736c42b707..e8a870b82d15b00a034e05ccf1e233efb3cc9097 100644 (file)
@@ -230,7 +230,7 @@ QList<QNetworkCookie*>* 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 , " +