From: Jérémie Galarneau Date: Wed, 13 Jul 2022 21:14:01 +0000 (-0400) Subject: sessiond: tsdl: remove useless std::move X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a57c248ad6c2dc246335330f41f9aae9d18fa17e;p=lttng-tools.git sessiond: tsdl: remove useless std::move append_metadata_fragment accepts the string by reference and it is passed as such all the way; there is no need for an ownership transfer. Signed-off-by: Jérémie Galarneau Change-Id: I49baab00c333b97f0dde49bad34fee43e7e40a2b --- diff --git a/src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp b/src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp index d90f5eacd..17c4f92c4 100644 --- a/src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp +++ b/src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp @@ -547,7 +547,7 @@ void tsdl::trace_class_visitor::visit(const lttng::sessiond::trace::trace_class& fmt::arg("packet_header_layout", packet_header_visitor.get_description())); /* Declare trace scope and type aliases. */ - append_metadata_fragment(std::move(trace_class_tsdl)); + append_metadata_fragment(trace_class_tsdl); } void tsdl::trace_class_visitor::visit(const lttng::sessiond::trace::clock_class& clock_class) @@ -574,7 +574,7 @@ void tsdl::trace_class_visitor::visit(const lttng::sessiond::trace::clock_class& fmt::arg("frequency", clock_class.frequency), fmt::arg("offset", clock_class.offset)); - append_metadata_fragment(std::move(clock_class_str)); + append_metadata_fragment(clock_class_str); } void tsdl::trace_class_visitor::visit(const lttng::sessiond::trace::stream_class& stream_class)