summaryrefslogtreecommitdiff
path: root/platform/qt/src/sqlite3.cpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-11-12 16:38:34 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-11-13 22:55:26 +0200
commitcd92a231b3e11c65321a48d0167898bb0e5a5fa8 (patch)
treef821513781bee5b9039945489d1fe926c8900a6d /platform/qt/src/sqlite3.cpp
parentb891a8d6b0dc9e92a283756448b4671bef3da71f (diff)
downloadqtlocation-mapboxgl-cd92a231b3e11c65321a48d0167898bb0e5a5fa8.tar.gz
[qt] Deprecate Qt4 and old versions of Qt5
Not enough adoption to keep the platform alive.
Diffstat (limited to 'platform/qt/src/sqlite3.cpp')
-rw-r--r--platform/qt/src/sqlite3.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/platform/qt/src/sqlite3.cpp b/platform/qt/src/sqlite3.cpp
index d27ebf354d..6427126875 100644
--- a/platform/qt/src/sqlite3.cpp
+++ b/platform/qt/src/sqlite3.cpp
@@ -26,22 +26,14 @@ namespace sqlite {
void checkQueryError(const QSqlQuery& query) {
QSqlError lastError = query.lastError();
if (lastError.type() != QSqlError::NoError) {
-#if QT_VERSION >= 0x050300
throw Exception { lastError.nativeErrorCode().toInt(), lastError.databaseText().toStdString() };
-#else
- throw Exception { lastError.number(), lastError.databaseText().toStdString() };
-#endif
}
}
void checkDatabaseError(const QSqlDatabase &db) {
QSqlError lastError = db.lastError();
if (lastError.type() != QSqlError::NoError) {
-#if QT_VERSION >= 0x050300
throw Exception { lastError.nativeErrorCode().toInt(), lastError.databaseText().toStdString() };
-#else
- throw Exception { lastError.number(), lastError.databaseText().toStdString() };
-#endif
}
}