Fix dumping function to make them use generic ostream

* src/abg-writer.cc (dump(const decl_base_sptr, std::ostream&)):
	Do not dump the content to cerr here.  Rather dump to the output
	stream given in parameter.  Oops.
	(dump(const translation_unit&, std::ostream&)): Likewise.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
Dodji Seketeli 2014-04-16 17:06:11 +02:00
parent b462192739
commit 2dd9d92e34

View File

@ -2131,7 +2131,7 @@ dump(const decl_base_sptr d, std::ostream& o)
{
xml_writer::write_context ctxt(o);
write_decl(d, ctxt, /*indent=*/0);
cerr << "\n";
o << "\n";
}
/// Serialize a pointer to decl_base to stderr.
@ -2187,7 +2187,7 @@ dump(const translation_unit& t, std::ostream& o)
{
xml_writer::write_context ctxt(o);
write_translation_unit(t, ctxt, /*indent=*/0);
cerr << "\n";
o << "\n";
}
/// Serialize an instance of @ref translation_unit to stderr.