diff --git a/src/DebugLogger.cc b/src/DebugLogger.cc index 3cb74dbc3f..e3184afa6c 100644 --- a/src/DebugLogger.cc +++ b/src/DebugLogger.cc @@ -113,7 +113,7 @@ void DebugLogger::EnableStreams(const char* s) { if ( util::starts_with(ltok, "plugin-") ) { // Cannot verify this at this time, plugins may not // have been loaded. - enabled_streams.insert(ltok); + enabled_streams.insert(std::move(ltok)); goto next; } diff --git a/src/Func.cc b/src/Func.cc index 6aa53eefff..c612f0b979 100644 --- a/src/Func.cc +++ b/src/Func.cc @@ -866,7 +866,7 @@ static std::set get_func_groups(const std::vector& attrs } auto group = event_registry->RegisterGroup(EventGroupKind::Attribute, v->AsStringVal()->ToStdStringView()); - groups.insert(group); + groups.insert(std::move(group)); } return groups; diff --git a/src/logging/Manager.cc b/src/logging/Manager.cc index 89dcb1fa13..3987cb7d40 100644 --- a/src/logging/Manager.cc +++ b/src/logging/Manager.cc @@ -811,7 +811,7 @@ bool Manager::TraverseRecord(Stream* stream, Filter* filter, RecordType* rt, Tab } // Alright, we want this field. - filter->indices.push_back(new_indices); + filter->indices.push_back(std::move(new_indices)); // Static cast this to void* to avoid a clang-tidy warning about converting from the // double-pointer to void*