fixed generation of method out signature for multible parameters

This commit is contained in:
Andreas Volz 2008-10-03 09:17:05 +02:00
parent 46a1a2c591
commit 915f80174d

View file

@ -1,6 +1,6 @@
/* /*
* *
* D-Bus++ - C++ bindings for D-Bus * D-->Bus++ - C++ bindings for D-Bus
* *
* Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com> * Copyright (C) 2005-2007 Paolo Durante <shackan@gmail.com>
* *
@ -450,7 +450,7 @@ void generate_proxy(Xml::Document &doc, const char *filename)
for (Xml::Nodes::iterator ao = args_out.begin(); ao != args_out.end(); ++ao, ++j) for (Xml::Nodes::iterator ao = args_out.begin(); ao != args_out.end(); ++ao, ++j)
{ {
Xml::Node &arg = **ao; Xml::Node &arg = **ao;
Xml::Nodes annotations = args_out["annotation"]; Xml::Nodes annotations = arg["annotation"];
Xml::Nodes annotations_object = annotations.select("name","org.freedesktop.DBus.Object"); Xml::Nodes annotations_object = annotations.select("name","org.freedesktop.DBus.Object");
string arg_object; string arg_object;
@ -479,7 +479,7 @@ void generate_proxy(Xml::Document &doc, const char *filename)
else else
body << " argout" << j; body << " argout" << j;
if (i+1 != args_out.size()) if (j+1 != args_out.size())
body << ", "; body << ", ";
} }
} }