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; } }