[Zrouter-src] ZRouter.org: push to zconf++ zconf++/model.cc zconf++/model.h
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Wed Feb 22 13:56:32 UTC 2012
details: /rev/139cda20c071
changeset: 63:139cda20c071
user: "Nicolai Petri <nicolai at petri.dk>"
date: Wed Feb 22 14:56:09 2012 +0100
description:
Don't require a stringstream when we just mean any output stream
diffstat:
zconf++/model.cc | 2 +-
zconf++/model.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff -r 83c0ff61206c -r 139cda20c071 zconf++/model.cc
--- a/zconf++/model.cc Wed Feb 22 12:18:52 2012 +0100
+++ b/zconf++/model.cc Wed Feb 22 14:56:09 2012 +0100
@@ -347,7 +347,7 @@
return rv;
}
- void ModelWriter::write(std::stringstream &buf, Leaf& l, const std::string &indent) {
+ void ModelWriter::write(std::ostream &buf, Leaf& l, const std::string &indent) {
// for (int c=0; c < l.numChildren(); c++) {
buf << indent;
if (l.type() == STRING_LEAF) {
diff -r 83c0ff61206c -r 139cda20c071 zconf++/model.h
--- a/zconf++/model.h Wed Feb 22 12:18:52 2012 +0100
+++ b/zconf++/model.h Wed Feb 22 14:56:09 2012 +0100
@@ -135,7 +135,7 @@
{
public:
static std::string write(Leaf& p_start_leaf, const std::string& p_indent);
- static void write(std::stringstream &p_dest, Leaf& p_start_leaf, const std::string& p_indent);
+ static void write(std::ostream &p_dest, Leaf& p_start_leaf, const std::string& p_indent);
};
template <class TClass>
class TModelActionHandler : public IModelActionHandler
More information about the Zrouter-src
mailing list