mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-19 16:30:04 +00:00
Add constness to elf_symbol::operator==
* include/abg-ir.h (elf_symbol::operator==): Add a const to the declaration ... * src/abg-ir.cc (elf_symbol::operator==): ... and to the definition. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
474b1c0e77
commit
41cfd5a82b
@ -416,7 +416,7 @@ public:
|
||||
operator=(const elf_symbol& s);
|
||||
|
||||
bool
|
||||
operator==(const elf_symbol&);
|
||||
operator==(const elf_symbol&) const;
|
||||
}; // end class elf_symbol.
|
||||
|
||||
std::ostream&
|
||||
|
@ -646,7 +646,7 @@ elf_symbol::get_name_and_version_from_id(const string& id,
|
||||
///@}
|
||||
|
||||
bool
|
||||
elf_symbol::operator==(const elf_symbol& other)
|
||||
elf_symbol::operator==(const elf_symbol& other) const
|
||||
{
|
||||
return (get_name() == other.get_name()
|
||||
&& get_type() == other.get_type()
|
||||
|
Loading…
Reference in New Issue
Block a user