1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

* Fixed compiling on OSX.

This commit is contained in:
Christian Muehlhaeuser 2012-05-23 13:04:30 +02:00
parent 3e1a5c15c5
commit 2673645907
2 changed files with 6 additions and 4 deletions

View File

@ -22,9 +22,9 @@
#include <QSqlError>
#include <QTime>
#include <QVariant>
#define QUERY_THRESHOLD 60
#define QUERY_ANALYZE 1
TomahawkSqlQuery::TomahawkSqlQuery()
@ -59,7 +59,7 @@ TomahawkSqlQuery::exec()
int e = t.elapsed();
bool log = ( e >= QUERY_THRESHOLD );
#ifdef QUERY_ANALYZE
#ifdef TOMAHAWK_QUERY_ANALYZE
log = true;
#endif
@ -76,7 +76,7 @@ TomahawkSqlQuery::showError()
tLog() << "\n" << "*** DATABASE ERROR ***" << "\n"
<< this->lastQuery() << "\n"
<< "boundValues:" << this->boundValues() << "\n"
<< this->lastError().text() << "\n"
;
<< this->lastError().text() << "\n";
Q_ASSERT( false );
}

View File

@ -23,6 +23,8 @@
#include <QSqlQuery>
#define TOMAHAWK_QUERY_ANALYZE 1
class TomahawkSqlQuery : public QSqlQuery
{