sessiond: tsdl: remove useless std::move
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 13 Jul 2022 21:14:01 +0000 (17:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 Dec 2022 14:05:33 +0000 (09:05 -0500)
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 <jeremie.galarneau@efficios.com>
Change-Id: I49baab00c333b97f0dde49bad34fee43e7e40a2b

src/bin/lttng-sessiond/tsdl-trace-class-visitor.cpp

index d90f5eacd4cb2c8723ab576e7dc18423a4414ec8..17c4f92c4b8817c55746ae8a4ec3e66e47ccfe82 100644 (file)
@@ -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)
This page took 0.025622 seconds and 4 git commands to generate.