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:
Dodji Seketeli 2014-09-16 11:21:47 +02:00
parent 474b1c0e77
commit 41cfd5a82b
2 changed files with 2 additions and 2 deletions

View File

@ -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&

View File

@ -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()