mirror of
https://github.com/silverqx/TinyORM.git
synced 2025-12-21 10:29:36 -06:00
drivers mysql suppressed Clang Tidy warning
This commit is contained in:
@@ -52,7 +52,7 @@ void PopulatesFieldDefaultValuesPrivate::populateFieldDefaultValuesInternal(
|
||||
// Table name from the field 0 is guaranteed
|
||||
sqlQuery.addBindValue(record.field(0).tableName());
|
||||
// Bind all field names
|
||||
if (!allColumns)
|
||||
if (!allColumns && fieldNames) // fieldNames check to suppress Clang Tidy
|
||||
for (const auto &fieldName : *fieldNames)
|
||||
sqlQuery.addBindValue(fieldName); // Don't move because QVariant(fieldName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user