[wpiutil] StringLogEntry::Update(): Take string_view (#7074)

This commit is contained in:
Peter Johnson
2024-09-12 23:45:57 -07:00
committed by GitHub
parent 1f3ef019ce
commit 994af25fcf

View File

@@ -876,7 +876,7 @@ class StringLogEntry : public DataLogValueEntryImpl<std::string> {
* @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;