Applied hicpp-move-const-arg fixes

This commit is contained in:
Bartek Kryza
2022-12-21 19:11:39 +01:00
parent 4539ea9c64
commit e1b6babc93
2 changed files with 8 additions and 8 deletions

View File

@@ -205,7 +205,7 @@ bool diagram::add_enum(std::unique_ptr<enum_> &&e)
if (!has_enum(*e)) {
if (add_element(ns, std::move(e))) {
enums_.emplace_back(std::move(e_ref));
enums_.emplace_back(e_ref);
return true;
}
}