From 328572908b6ce8777a780e9fa8106954f749a3a5 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 8 Jan 2021 12:26:09 +0100 Subject: lib: Remove move-on-return for chdr_packet_writer This is a pessimizing move, and clang warns about it. --- host/lib/rfnoc/graph_stream_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/rfnoc/graph_stream_manager.cpp') diff --git a/host/lib/rfnoc/graph_stream_manager.cpp b/host/lib/rfnoc/graph_stream_manager.cpp index de86d299b..fdf294006 100644 --- a/host/lib/rfnoc/graph_stream_manager.cpp +++ b/host/lib/rfnoc/graph_stream_manager.cpp @@ -31,8 +31,8 @@ public: for (const auto& lnk : links) { UHD_ASSERT_THROW(lnk.second); _link_mgrs.emplace(lnk.first, - std::move(link_stream_manager::make( - pkt_factory, *lnk.second, epid_alloc, lnk.first))); + link_stream_manager::make( + pkt_factory, *lnk.second, epid_alloc, lnk.first)); auto adapter = _link_mgrs.at(lnk.first)->get_adapter_id(); if (_alloc_map.count(adapter) == 0) { _alloc_map[adapter] = allocation_info{0, 0}; -- cgit v1.2.3