diff --git a/src/libs/sqlite/sqlitebasestatement.h b/src/libs/sqlite/sqlitebasestatement.h index 08fb7ed0ed0..92c3b28a4cd 100644 --- a/src/libs/sqlite/sqlitebasestatement.h +++ b/src/libs/sqlite/sqlitebasestatement.h @@ -178,14 +178,15 @@ public: template void bindValues(const ValueType&... values) { - bindValuesByIndex(1, values...); + int index = 0; + (BaseStatement::bind(++index, values), ...); } template void write(const ValueType&... values) { Resetter resetter{*this}; - bindValuesByIndex(1, values...); + bindValues(values...); BaseStatement::next(); resetter.reset(); } @@ -380,19 +381,6 @@ private: return callCallable(callable, std::make_integer_sequence{}); } - template - void bindValuesByIndex(int index, const ValueType &value) - { - BaseStatement::bind(index, value); - } - - template - void bindValuesByIndex(int index, const ValueType &value, const ValueTypes &...values) - { - BaseStatement::bind(index, value); - bindValuesByIndex(index + 1, values...); - } - void setMaximumResultCount(std::size_t count) { m_maximumResultCount = std::max(m_maximumResultCount, count);