mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibDevTools: Remove use-after-move in actor_for_node()
This commit is contained in:
parent
af60e36122
commit
140a099fe6
Notes:
github-actions[bot]
2025-07-03 08:58:13 +00:00
Author: https://github.com/AtkinsSJ
Commit: 140a099fe6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5274
1 changed files with 1 additions and 1 deletions
|
@ -762,7 +762,7 @@ NodeActor const& WalkerActor::actor_for_node(JsonObject const& node)
|
||||||
return *node_actor;
|
return *node_actor;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& node_actor = devtools().register_actor<NodeActor>(move(identifier), *this);
|
auto& node_actor = devtools().register_actor<NodeActor>(identifier, *this);
|
||||||
m_node_actors.set(identifier, node_actor);
|
m_node_actors.set(identifier, node_actor);
|
||||||
|
|
||||||
return node_actor;
|
return node_actor;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue