mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-02 06:41:40 +00:00
Pass parm of elf_symbol::add_alias by reference
* include/abg-ir.h (elf_symbol::add_alias): Pass parameter by reference. * src/abg-ir.cc (elf_symbol::add_alias): Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
640b3a2f59
commit
11c89cad3e
@ -670,7 +670,7 @@ public:
|
||||
get_number_of_aliases() const;
|
||||
|
||||
void
|
||||
add_alias(elf_symbol_sptr);
|
||||
add_alias(const elf_symbol_sptr&);
|
||||
|
||||
bool
|
||||
is_common_symbol() const;
|
||||
|
@ -1146,7 +1146,7 @@ elf_symbol::get_number_of_aliases() const
|
||||
/// @param alias the new alias. Note that this elf_symbol should *NOT*
|
||||
/// have aliases prior to the invocation of this function.
|
||||
void
|
||||
elf_symbol::add_alias(elf_symbol_sptr alias)
|
||||
elf_symbol::add_alias(const elf_symbol_sptr& alias)
|
||||
{
|
||||
if (!alias)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user