+ wxMethod tmp(*api);
+
+ // discard API argument names and replace them with those parsed from doxygen XML:
+ const wxArgumentTypeArray& doxygenargs = iface->GetArgumentTypes();
+ const wxArgumentTypeArray& realargs = api->GetArgumentTypes();
+ if (realargs.GetCount() == doxygenargs.GetCount())
+ {
+ for (unsigned int j=0; j<doxygenargs.GetCount(); j++)
+ if (doxygenargs[j]==realargs[j])
+ realargs[j].SetArgumentName(doxygenargs[j].GetArgumentName());
+
+ tmp.SetArgumentTypes(realargs);
+ }
+