From 5fdda243657f65c9351b3137979be2777a5f6a19 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 28 Apr 2024 01:23:47 +0200 Subject: [PATCH] coverity: "values_in is passed-by-value as parameter to split when it could be moved instead" --- breakpoint_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breakpoint_memory.cpp b/breakpoint_memory.cpp index e56ce0a..b37e3f4 100644 --- a/breakpoint_memory.cpp +++ b/breakpoint_memory.cpp @@ -41,7 +41,7 @@ std::pair > breakpoint_memory::p return { nullptr, "memory: key or value missing" }; auto values_in = parts.at(1); - auto v_parts = split(values_in, ","); + auto v_parts = split(std::move(values_in), ","); std::set values; for(auto & v: v_parts) values.insert(std::stoi(v, nullptr, 8));