added wxArgumentType; added parsing of argument names, so that the modify mode retains them when writing correct prototypes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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; j<doxygenargs.GetCount(); j++)
|
||||
if (doxygenargs[j]==realargs[j])
|
||||
realargs[j].SetArgumentName(doxygenargs[j].GetArgumentName());
|
||||
|
||||
tmp.SetArgumentTypes(realargs);
|
||||
}
|
||||
|
||||
// insert the new one
|
||||
file.InsertLine(INDENTATION_STR + api->GetAsString() + ";", start);
|
||||
file.InsertLine(INDENTATION_STR + tmp.GetAsString() + ";", start);
|
||||
|
||||
// now save the modification
|
||||
if (!file.Write()) {
|
||||
|
Reference in New Issue
Block a user