Skip to content

Commit

Permalink
fixed warning, variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 4, 2022
1 parent 9df8ed4 commit 43ee364
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/orm/tiny/relations/belongsto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ namespace Orm::Tiny::Relations
keys << std::move(value);
}

return keys |= ranges::actions::sort(ranges::less {}, [](const auto &key)
return keys |= ranges::actions::sort(ranges::less {}, [](const auto &key_)
{
return key.template value<typename Model::KeyType>();
return key_.template value<typename Model::KeyType>();
})
| ranges::actions::unique;
}
Expand Down
4 changes: 2 additions & 2 deletions include/orm/tiny/relations/relation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ namespace Relations
keys.append(key.isEmpty() ? model.getKey()
: model.getAttribute(key));

return keys |= ranges::actions::sort(ranges::less {}, [](const auto &key)
return keys |= ranges::actions::sort(ranges::less {}, [](const auto &key_)
{
return key.template value<typename Model::KeyType>();
return key_.template value<typename Model::KeyType>();
})
| ranges::actions::unique;
}
Expand Down

0 comments on commit 43ee364

Please sign in to comment.