Remove semicolons after Q_UNUSED macros (#84)
* Extend .gitignore * Extend .gitignore * Removed unneccessary semicolons after the Q_UNUSED macros
This commit is contained in:
parent
f56ccd7055
commit
7d7a3caf41
|
|
@ -525,8 +525,8 @@ void Database::databaseCreated()
|
|||
|
||||
void Database::databaseUpdated(int oldVersion, int newVersion)
|
||||
{
|
||||
Q_UNUSED(oldVersion);
|
||||
Q_UNUSED(newVersion);
|
||||
Q_UNUSED(oldVersion)
|
||||
Q_UNUSED(newVersion)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ SqlGeneratorBase::SqlGeneratorBase(Database *parent)
|
|||
|
||||
QString SqlGeneratorBase::masterDatabaseName(QString databaseName)
|
||||
{
|
||||
Q_UNUSED(databaseName);
|
||||
Q_UNUSED(databaseName)
|
||||
return QString();
|
||||
}
|
||||
|
||||
|
|
@ -152,7 +152,7 @@ QString SqlGeneratorBase::fieldDeclare(FieldModel *field)
|
|||
|
||||
QStringList SqlGeneratorBase::constraints(TableModel *table)
|
||||
{
|
||||
Q_UNUSED(table);
|
||||
Q_UNUSED(table)
|
||||
return QStringList();
|
||||
}
|
||||
|
||||
|
|
@ -569,8 +569,8 @@ QString SqlGeneratorBase::selectCommand(const QString &tableName,
|
|||
const int skip,
|
||||
const int take)
|
||||
{
|
||||
Q_UNUSED(skip);
|
||||
Q_UNUSED(take);
|
||||
Q_UNUSED(skip)
|
||||
Q_UNUSED(take)
|
||||
QString selectText;
|
||||
|
||||
if (fields.data.count() == 0) {
|
||||
|
|
@ -712,8 +712,8 @@ QString SqlGeneratorBase::insertCommand(const QString &tableName, const Assignme
|
|||
// QList<RelationModel*> joins,
|
||||
// int skip, int take)
|
||||
//{
|
||||
// Q_UNUSED(take);
|
||||
// Q_UNUSED(skip);
|
||||
// Q_UNUSED(take)
|
||||
// Q_UNUSED(skip)
|
||||
|
||||
// QStringList joinedOrders;
|
||||
// QString select = agregateText(t, agregateArg);
|
||||
|
|
@ -979,9 +979,9 @@ SqlGeneratorBase::operatorString(const PhraseData::Condition &cond) const
|
|||
|
||||
void SqlGeneratorBase::appendSkipTake(QString &sql, int skip, int take)
|
||||
{
|
||||
Q_UNUSED(sql);
|
||||
Q_UNUSED(skip);
|
||||
Q_UNUSED(take);
|
||||
Q_UNUSED(sql)
|
||||
Q_UNUSED(skip)
|
||||
Q_UNUSED(take)
|
||||
}
|
||||
|
||||
QString SqlGeneratorBase::primaryKeyConstraint(const TableModel *table) const
|
||||
|
|
|
|||
|
|
@ -198,7 +198,7 @@ void SqliteGenerator::appendSkipTake(QString &sql, int skip, int take)
|
|||
|
||||
QString SqliteGenerator::primaryKeyConstraint(const TableModel *table) const
|
||||
{
|
||||
Q_UNUSED(table);
|
||||
Q_UNUSED(table)
|
||||
return QString();
|
||||
// QString sql = QString("CONSTRAINT pk_%1 PRIMARY KEY (%2)")
|
||||
// .arg(table->name())
|
||||
|
|
|
|||
|
|
@ -52,13 +52,13 @@ SqlModel::SqlModel(Database *database, TableSetBase *tableSet, QObject *parent)
|
|||
|
||||
int SqlModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(parent)
|
||||
return d->rows.count();
|
||||
}
|
||||
|
||||
int SqlModel::columnCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(parent)
|
||||
return d->model->fields().count();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue