From 994af25fcf3f70959eca84785f201cfbec7d4195 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 12 Sep 2024 23:45:57 -0700 Subject: [PATCH] [wpiutil] StringLogEntry::Update(): Take string_view (#7074) --- wpiutil/src/main/native/include/wpi/DataLog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpiutil/src/main/native/include/wpi/DataLog.h b/wpiutil/src/main/native/include/wpi/DataLog.h index 35f0859ec0f..1253b5bc13d 100644 --- a/wpiutil/src/main/native/include/wpi/DataLog.h +++ b/wpiutil/src/main/native/include/wpi/DataLog.h @@ -876,7 +876,7 @@ class StringLogEntry : public DataLogValueEntryImpl { * @param value Value to record * @param timestamp Time stamp (may be 0 to indicate now) */ - void Update(std::string value, int64_t timestamp = 0) { + void Update(std::string_view value, int64_t timestamp = 0) { std::scoped_lock lock{m_mutex}; if (m_lastValue != value) { m_lastValue = value;