José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Fri, Oct 08, 2004 at 08:17:25PM +0200, Lars Gullik Bjønnes wrote: >> [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: >> >> | Actually it should be pretty safe to put this code in CVS... but I'll >> | hold off on that. >> >> This patch is a bit nicer, no real changes. >> > >> ? xmlutils.h > | File missing.
just stupid stuff in that file anyway... #ifndef XMLUTILS_H #define XMLUTILS_H #include "support/tostr.h" template<class T> std::string param(std::string const & name, T value) { return "<param name=\"" + name + "\" value=\"" + tostr(value) + "\"/>"; } template<class T> std::string attrib(std::string const & name, T value) { return " " + name + "=\"" + tostr(value) + "\""; } #endif > | No need of the ostringstream here, just place each parameter in its own | line, it is easier to read. And also visually consistent with the document | header. I am not chaning the structure of the code... just what is output. -- Lgb