static analysis: std::move

This commit is contained in:
Megamouse 2025-03-04 19:43:44 +01:00
parent e8463403f5
commit 6abb863a54
5 changed files with 5 additions and 5 deletions

View file

@ -543,7 +543,7 @@ namespace cfg
std::string def;
string(node* owner, std::string name, std::string def = {}, bool dynamic = false)
: _base(type::string, owner, name, dynamic)
: _base(type::string, owner, std::move(name), dynamic)
, m_value(def)
, def(std::move(def))
{