]> sourceware.org Git - libabigail.git/commit
crc_changed: eliminate copying of shared_ptr values
authorGiuliano Procida <gprocida@google.com>
Mon, 13 Jun 2022 14:25:30 +0000 (15:25 +0100)
committerDodji Seketeli <dodji@redhat.com>
Thu, 30 Jun 2022 13:45:40 +0000 (15:45 +0200)
commitd15c30e31950e27e72f50777dde00f63400ed80b
treec2e4cd3c574cb1384e65c8dccf72cff4efb4ae06
parentd21dbadddd847898362d715ff577628535360f17
crc_changed: eliminate copying of shared_ptr values

As pointed out in a review of similar code, it is possible to avoid
copying a couple of shared pointers in this function, by taking
references instead.

This commit also splits declarations to one per line and removes the
unnecessary parentheses around the return expression.

* src/abg-comp-filter.cc (crc_changed): Take references to
avoid std::shared_ptr copying. Split declarations into one per
line. Remove unnecessary return expression parentheses.

Reviewed-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Giuliano Procida <gprocida@google.com>
src/abg-comp-filter.cc
This page took 0.030676 seconds and 5 git commands to generate.