X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a7be99c8034b3a1fc9b2caf23cdae09eb738dff9..f270e1ddda1b89edfe4db9aa29ef26cac9ff4d0f:/utils/ifacecheck/src/ifacecheck.cpp?ds=inline diff --git a/utils/ifacecheck/src/ifacecheck.cpp b/utils/ifacecheck/src/ifacecheck.cpp index 3a6a2bbec8..8e4f593ce5 100644 --- a/utils/ifacecheck/src/ifacecheck.cpp +++ b/utils/ifacecheck/src/ifacecheck.cpp @@ -336,8 +336,22 @@ void IfaceCheckApp::FixMethod(const wxString& header, const wxMethod* iface, con file.InsertLine(INDENTATION_STR + "*/", start++); } + 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; jGetAsString() + ";", start); + file.InsertLine(INDENTATION_STR + tmp.GetAsString() + ";", start); // now save the modification if (!file.Write()) {