Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Sep 20, 2024
1 parent dc79aec commit 8bd00bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xtd.core/include/xtd/basic_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace xtd {
/// @brief Determines whether an element is in the array.
/// @param value The object to be added to the end of the array.
constexpr bool contains(const type_t& value) const noexcept override {
for (const type_t& item : data_->items)
for (const auto& item : data_->items)
if (item == value) return true;
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/xtd.core/include/xtd/collections/generic/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ namespace xtd {
}

bool contains(const type_t& value) const noexcept override {
for (const type_t& item : data_->items)
for (const auto& item : data_->items)
if (item == value) return true;
return false;
}
Expand Down

0 comments on commit 8bd00bc

Please sign in to comment.