Fix compilation

qFatal does not work with <<
This commit is contained in:
Olivier Goffart 2014-09-15 18:03:44 +02:00
parent 97cc05eeea
commit 9b1779bb06

View file

@ -80,13 +80,8 @@ void SyncJournalDb::commitTransaction()
bool SyncJournalDb::sqlFail( const QString& log, const QSqlQuery& query ) bool SyncJournalDb::sqlFail( const QString& log, const QSqlQuery& query )
{ {
commitTransaction(); commitTransaction();
#ifdef NDEBUG qWarning() << "SQL Error" << log << query.lastError().text();
qWarning() Q_ASSERT(!"SQL ERROR");
#else
qFatal()
#endif
<< "SQL Error" << log << query.lastError().text();
_db.close(); _db.close();
return false; return false;
} }