summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-09-16 00:02:03 -0700
committerAndreas Kling <kling@serenityos.org>2021-09-16 17:17:13 +0200
commit507effce5b0f485139d6cc7bd82b6de8bfbf2f1c (patch)
tree4b125506b16acf27f9b1ef1b4c9f23d6aac3af73 /Userland/Libraries
parent0db46eecdcd39185d099b580aef56e7c0183baaf (diff)
downloadserenity-507effce5b0f485139d6cc7bd82b6de8bfbf2f1c.zip
LibPDF: Use move to avoid unnecessary ref/unref of network device RefPtr
Flagged by pvs-studio as a potential perf optimization.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibPDF/Document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/Document.cpp b/Userland/Libraries/LibPDF/Document.cpp
index 582a1c90f9..3705ee30e4 100644
--- a/Userland/Libraries/LibPDF/Document.cpp
+++ b/Userland/Libraries/LibPDF/Document.cpp
@@ -305,7 +305,7 @@ NonnullRefPtrVector<OutlineItem> Document::build_outline_item_chain(Value const&
auto next_child = build_outline_item(next_child_dict);
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);