From 8bfacff35aad428705713e9f2d3069add5c9997f Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Thu, 7 Nov 2024 12:44:38 +1100 Subject: [PATCH] make it a reference --- cpp/src/arrow/util/value_parsing_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/util/value_parsing_test.cc b/cpp/src/arrow/util/value_parsing_test.cc index d55c7c9496f92..ad4de902ac1e0 100644 --- a/cpp/src/arrow/util/value_parsing_test.cc +++ b/cpp/src/arrow/util/value_parsing_test.cc @@ -852,7 +852,7 @@ TEST(TimestampParser, StrptimeZoneOffset) { // N.B. GNU %z supports ISO8601 format while BSD %z supports only // +HHMM or -HHMM and POSIX doesn't appear to define %z at all for (auto unit : TimeUnit::values()) { - for (const std::string value : values) { + for (const std::string& value : values) { SCOPED_TRACE(value); int64_t converted = 0; int64_t expected = 0;