mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 03:27:12 +01:00
Use std::move to avoid a copy
This commit is contained in:
parent
33952d2dd2
commit
7e12f5599d
@ -242,7 +242,7 @@ namespace vcpkg
|
||||
expected<SourceParagraph> source_paragraph = try_load_port(path);
|
||||
if (auto srcpgh = source_paragraph.get())
|
||||
{
|
||||
output.emplace_back(*srcpgh);
|
||||
output.emplace_back(std::move(*srcpgh));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user