Rename class_decl::member_type::get_type into as_type

* src/abg-ir.h (class_decl::member_type::get_type): Rename this
	into class_decl::member_type::as_type.
	* src/abg-writer.cc (write_class_decl): Adjust.
This commit is contained in:
Dodji Seketeli 2013-04-23 10:56:38 +02:00 committed by Dodji Seketeli
parent 80d0e29f69
commit ed33523dd6
2 changed files with 3 additions and 3 deletions

View File

@ -953,7 +953,7 @@ public:
bool
operator==(const member_type& o) const
{
return (*get_type() == *o.get_type()
return (*as_type() == *o.as_type()
&& static_cast<member>(*this) == o);
}
@ -961,7 +961,7 @@ public:
{return m_type;}
shared_ptr<type_base>
get_type() const
as_type() const
{return m_type;}
private:

View File

@ -976,7 +976,7 @@ write_class_decl(const shared_ptr<class_decl> decl,
write_access(*ti, o);
o << ">\n";
write_decl(dynamic_pointer_cast<decl_base>((*ti)->get_type()), ctxt,
write_decl(dynamic_pointer_cast<decl_base>((*ti)->as_type()), ctxt,
get_indent_to_level(ctxt, indent, 2));
o << "\n";