Skip to content

Commit 6092c03

Browse files
committed
fix clang-tidy performance-unnecessary-value-param warnings
1 parent 65a6ad9 commit 6092c03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sdk/src/trace/span.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ void Span::AddLinks(const opentelemetry::trace::SpanContextKeyValueIterable &lin
172172
return;
173173
}
174174

175-
links.ForEachKeyValue([&](opentelemetry::trace::SpanContext span_context,
175+
links.ForEachKeyValue([&](const opentelemetry::trace::SpanContext &span_context,
176176
const common::KeyValueIterable &attributes) {
177177
recordable_->AddLink(span_context, attributes);
178178
return true;

sdk/test/metrics/metric_collector_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class testing::MetricCollectorTest : public Test
8989
{
9090
public:
9191
std::weak_ptr<MetricCollector> AddMetricReaderToMeterContext(
92-
std::shared_ptr<MeterContext> context,
92+
const std::shared_ptr<MeterContext> &context,
9393
std::shared_ptr<MetricReader> reader,
9494
std::unique_ptr<MetricFilter> metric_filter = nullptr) noexcept
9595
{

0 commit comments

Comments
 (0)