trying to resolve travis build errors

This commit is contained in:
Hamed Masafi 2018-01-08 15:26:58 +03:30
parent da876f37b2
commit c341fd758e
2 changed files with 8 additions and 5 deletions

View File

@ -63,8 +63,8 @@ TableModel *DatabaseModel::tableByName(QString tableName) const
return s; return s;
} }
qWarning("Table with name '%s' not found in model", // qWarning("Table with name '%s' not found in model",
qUtf8Printable(tableName)); // qUtf8Printable(tableName));
return 0; return 0;
} }
@ -77,8 +77,8 @@ TableModel *DatabaseModel::tableByClassName(QString className) const
return s; return s;
} }
qWarning("Table with class name '%s' not found in model", // qWarning("Table with class name '%s' not found in model",
qUtf8Printable(className)); // qUtf8Printable(className));
// Q_UNREACHABLE(); // Q_UNREACHABLE();
return 0; return 0;
} }
@ -120,7 +120,7 @@ QJsonObject DatabaseModel::toJson() const
{ {
QJsonObject obj; QJsonObject obj;
obj.insert(QT_STRINGIFY(version), QJsonValue(_version)); obj.insert(NODE_VERSION, QJsonValue(_version));
QJsonObject tables; QJsonObject tables;
for(int i = 0; i < size(); i++){ for(int i = 0; i < size(); i++){
TableModel *s = at(i); TableModel *s = at(i);

View File

@ -22,6 +22,9 @@
#define DATABASEMODEL_H #define DATABASEMODEL_H
#include <QtCore/QList> #include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include "defines.h" #include "defines.h"
class QJsonObject; class QJsonObject;