Skip to content

Commit

Permalink
added static_cast<> for reserve()
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Dec 15, 2022
1 parent 84a65de commit afdea43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/orm/basegrammar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ namespace Query
QVector<QString> BaseGrammar::wrapArray(const T &values) const
{
QVector<QString> wrapped;
wrapped.reserve(values.size());
wrapped.reserve(static_cast<QVector<QString>::size_type>(values.size()));

for (const auto &value : values)
wrapped << wrap(value);
Expand Down

0 comments on commit afdea43

Please sign in to comment.