From 3384ebe919d73173a0fba3278c6168db10473c98 Mon Sep 17 00:00:00 2001 From: firewave Date: Thu, 26 Feb 2026 01:40:35 +0100 Subject: [PATCH] fixed some `Variable copies when it could be moved` Coverity warnings --- lib/importproject.cpp | 2 +- lib/tokenize.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index 9706cd5c6b2..ec0f3c4a97d 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -104,7 +104,7 @@ std::string ImportProject::collectArgs(const std::string &cmd, std::vectorstr() + " "; } - numberOfTypedefs[ts.name()].insert(existing_data_type); + numberOfTypedefs[ts.name()].emplace(std::move(existing_data_type)); continue; } }