Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void print_value(const std::vector<T> &vec, std::ostream &sout)
sout << '[';
size_t i = 1;
size_t sz = vec.size();
for (auto v : vec)
for (const auto &v : vec)
{
sout << v;
if (i != sz)
Expand All @@ -47,7 +47,7 @@ void print_value(const nostd::span<T> &vec, std::ostream &sout)
sout << '[';
size_t i = 1;
size_t sz = vec.size();
for (auto v : vec)
for (const auto &v : vec)
{
sout << v;
if (i != sz)
Expand Down
2 changes: 1 addition & 1 deletion sdk/include/opentelemetry/sdk/common/attributemap_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inline void GetHash(size_t &seed, const T &arg)
template <class T>
inline void GetHash(size_t &seed, const std::vector<T> &arg)
{
for (auto v : arg)
for (const auto &v : arg)
{
GetHash<T>(seed, v);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ScopeConfigurator
return ScopeConfigurator<T>(
[conditions_ = this->conditions_, default_scope_config_ = this->default_scope_config_](
const InstrumentationScope &scope_info) {
for (Condition condition : conditions_)
for (const Condition &condition : conditions_)
{
if (condition.scope_matcher(scope_info))
{
Expand Down
Loading