mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibPDF: Use move to avoid unnecessary ref/unref of network device RefPtr
Flagged by pvs-studio as a potential perf optimization.
This commit is contained in:
parent
0db46eecdc
commit
507effce5b
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ NonnullRefPtrVector<OutlineItem> Document::build_outline_item_chain(Value const&
|
||||||
auto next_child = build_outline_item(next_child_dict);
|
auto next_child = build_outline_item(next_child_dict);
|
||||||
children.append(next_child);
|
children.append(next_child);
|
||||||
|
|
||||||
current_child_dict = next_child_dict;
|
current_child_dict = move(next_child_dict);
|
||||||
}
|
}
|
||||||
|
|
||||||
VERIFY(last_ref.as_ref_index() == current_child_index);
|
VERIFY(last_ref.as_ref_index() == current_child_index);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue