forked from lix-project/lix
MultiCommand::toJSON: Fix use-after-move
This commit is contained in:
parent
b9b51f9579
commit
1ffb26311b
|
@ -410,8 +410,8 @@ nlohmann::json MultiCommand::toJSON()
|
|||
auto cat = nlohmann::json::object();
|
||||
cat["id"] = command->category();
|
||||
cat["description"] = trim(categories[command->category()]);
|
||||
j["category"] = std::move(cat);
|
||||
cat["experimental-feature"] = command->experimentalFeature();
|
||||
j["category"] = std::move(cat);
|
||||
cmds[name] = std::move(j);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue