Skip to content
3 changes: 1 addition & 2 deletions aff4/aff4_imager_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,7 @@ AFF4Status BasicImager::handle_aff4_volumes() {
AFF4Flusher<AFF4Stream>(backing_stream.release()),
volume));

volume_objs.AddVolume(
std::move(AFF4Flusher<AFF4Volume>(volume.release())));
volume_objs.AddVolume(std::move(AFF4Flusher<AFF4Volume>(volume.release())));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the std::move from this call, it's not needed and will stop automatic copy elision

volume_objs.AddSearchPath(volume_to_load);
}
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.