From 995dd0a5786e1c5d3a0a18d3107cded17cf32089 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Fri, 1 Mar 2002 19:19:54 +0000 Subject: Inclued/cppunit/XmlOutputter. inclued/cppunit/XmlOutputter.h: * inclued/cppunit/XmlOutputter.cpp: added optional parameter to constructor to specify the encoding. * configure.in: updated version number to 1.7.3 --- src/cppunit/XmlOutputter.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/cppunit/XmlOutputter.cpp') diff --git a/src/cppunit/XmlOutputter.cpp b/src/cppunit/XmlOutputter.cpp index 540482d..52ed281 100644 --- a/src/cppunit/XmlOutputter.cpp +++ b/src/cppunit/XmlOutputter.cpp @@ -15,7 +15,7 @@ namespace CppUnit XmlOutputter::Node::Node( std::string elementName, - std::string content ) : + std::string content ) : m_name( elementName ), m_content( content ) { @@ -23,7 +23,7 @@ XmlOutputter::Node::Node( std::string elementName, XmlOutputter::Node::Node( std::string elementName, - int numericContent ) : + int numericContent ) : m_name( elementName ) { m_content = asString( numericContent ); @@ -40,7 +40,7 @@ XmlOutputter::Node::~Node() void XmlOutputter::Node::addAttribute( std::string attributeName, - std::string value ) + std::string value ) { m_attributes.push_back( Attribute( attributeName, value ) ); } @@ -48,7 +48,7 @@ XmlOutputter::Node::addAttribute( std::string attributeName, void XmlOutputter::Node::addAttribute( std::string attributeName, - int numericValue ) + int numericValue ) { addAttribute( attributeName, asString( numericValue ) ); } @@ -152,9 +152,11 @@ XmlOutputter::Node::asString( int value ) // ////////////////////////////////////////////////////////////////// XmlOutputter::XmlOutputter( TestResultCollector *result, - std::ostream &stream ) : + std::ostream &stream, + std::string encoding ) : m_result( result ), - m_stream( stream ) + m_stream( stream ), + m_encoding( encoding ) { } @@ -176,7 +178,7 @@ void XmlOutputter::writeProlog() { m_stream << "" + "encoding='" << m_encoding << "' standalone='yes' ?>" << std::endl; } -- cgit v1.2.1