Skip to content

Commit

Permalink
revisited some reverse()
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Dec 15, 2022
1 parent ca8e52d commit 84a65de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,8 @@ namespace Concerns
QVector<AttributeItem>> &idsWithAttributes) const
{
QVector<QVariant> ids;
ids.reserve(idsWithAttributes.size());
ids.reserve(static_cast<decltype (ids)::size_type>(
idsWithAttributes.size()));

for (const auto &record : idsWithAttributes)
ids << record.first;
Expand Down
1 change: 1 addition & 0 deletions src/orm/tiny/utils/attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ QVector<QVariantMap>
Attribute::convertVectorsToMaps(const QVector<QVector<AttributeItem>> &attributesVector)
{
const auto size = attributesVector.size();

QVector<QVariantMap> result(size);

for (QVector<QVariantMap>::size_type i = 0; i < size; ++i)
Expand Down

0 comments on commit 84a65de

Please sign in to comment.