From 544f82ea3ad8c02c9bdffcf9e96840038823d1d8 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 25 Nov 2014 09:51:09 +0100 Subject: [PATCH] sqlite: don't use deprecated QSqlError constructor so that it can build with configure -no-feature-DEPRECATED Change-Id: Id2decc05974bad249c79936d99ab63d3cfc375ad Reviewed-by: Friedemann Kleint --- src/sql/drivers/sqlite/qsql_sqlite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/drivers/sqlite/qsql_sqlite.cpp b/src/sql/drivers/sqlite/qsql_sqlite.cpp index cbde2bfa9c..84b6bbe80e 100644 --- a/src/sql/drivers/sqlite/qsql_sqlite.cpp +++ b/src/sql/drivers/sqlite/qsql_sqlite.cpp @@ -98,7 +98,7 @@ static QSqlError qMakeError(sqlite3 *access, const QString &descr, QSqlError::Er { return QSqlError(descr, QString(reinterpret_cast(sqlite3_errmsg16(access))), - type, errorCode); + type, QString::number(errorCode)); } class QSQLiteResultPrivate;