Skip to content

Commit

Permalink
[wpiutil] StringLogEntry::Update(): Take string_view (wpilibsuite#7074)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Sep 13, 2024
1 parent 1f3ef01 commit 994af25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpiutil/src/main/native/include/wpi/DataLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 994af25

Please sign in to comment.