diff options
author | Marc Mutz <marc.mutz.qnx@kdab.com> | 2012-03-09 16:07:14 +0100 |
---|---|---|
committer | Thomas McGuire <thomas.mcguire@kdab.com> | 2012-11-23 13:13:28 +0100 |
commit | e52ad06dce51d7320b44e5e254a678fd40681bb7 (patch) | |
tree | c0a99eb0baaab2186676962a6d664ca5350757c9 /plugins/landmarks/sqlite/databaseoperations.cpp | |
parent | ee207f708cd73a8b2a4fd252a6bcc790499c34d8 (diff) |
Fix some warnings
Change-Id: Id5f2f8d49bfdea1231920dd402c16472b4ec8571
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'plugins/landmarks/sqlite/databaseoperations.cpp')
-rw-r--r-- | plugins/landmarks/sqlite/databaseoperations.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/landmarks/sqlite/databaseoperations.cpp b/plugins/landmarks/sqlite/databaseoperations.cpp index 1f186dc1cf..0c263a028f 100644 --- a/plugins/landmarks/sqlite/databaseoperations.cpp +++ b/plugins/landmarks/sqlite/databaseoperations.cpp @@ -512,6 +512,7 @@ bool executeQuery(QSqlQuery *query, const QString &statement, const QMap<QString QString queryStringForRadius(const QGeoCoordinate &coord, qreal radius) { Q_UNUSED(radius); + Q_UNUSED(coord); return "SELECT id, latitude, longitude FROM landmark;"; } @@ -1851,8 +1852,8 @@ bool DatabaseOperations::saveLandmarks(QList<QLandmark> * landmark, lastError = QLandmarkManager::CancelError; lastErrorString = "Landmark save was canceled"; if (errorMap) { - for (i; i < landmark->size(); ++i) - errorMap->insert(i, lastError); + for (int j = i; j < landmark->size(); ++j) + errorMap->insert(j, lastError); } noErrors = false; break; @@ -1950,8 +1951,8 @@ bool DatabaseOperations::removeLandmarks(const QList<QLandmarkId> &landmarkIds, lastError = QLandmarkManager::CancelError; lastErrorString = "Landmark remove was canceled"; if (errorMap) { - for (i; i < landmarkIds.size(); ++i) - errorMap->insert(i, lastError); + for (int j = i; j < landmarkIds.size(); ++j) + errorMap->insert(j, lastError); } noErrors = false; break; @@ -2395,8 +2396,8 @@ bool DatabaseOperations::saveCategories(QList<QLandmarkCategory> * categories, lastError = QLandmarkManager::CancelError; lastErrorString = "Category save was canceled"; if (errorMap) { - for (i; i < categories->size(); ++i) - errorMap->insert(i, lastError); + for (int j = i; j < categories->size(); ++j) + errorMap->insert(j, lastError); } noErrors = false; break; @@ -2542,8 +2543,8 @@ bool DatabaseOperations::removeCategories(const QList<QLandmarkCategoryId> &cate lastError = QLandmarkManager::CancelError; lastErrorString = "Category remove was canceled"; if (errorMap) { - for (i; i < categoryIds.size(); ++i) - errorMap->insert(i, lastError); + for (int j = i; j < categoryIds.size(); ++j) + errorMap->insert(j, lastError); } noErrors = false; break; |