wxwidgets.cfg: Added support for wxMenu:Append().

This commit is contained in:
orbitcowboy 2017-10-17 10:59:23 +02:00
parent 6e737082da
commit f1e5f64690
3 changed files with 29 additions and 16 deletions

View File

@ -882,6 +882,22 @@
<noreturn>false</noreturn>
<leak-ignore/>
</function>
<!-- http://docs.wxwidgets.org/3.1/classwx_menu.html-->
<!-- wxMenuItem * Append (int id, const wxString &item=wxEmptyString, const wxString &helpString=wxEmptyString, wxItemKind kind=wxITEM_NORMAL) -->
<function name="wxMenu::Append">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="wxMenuItem *"/>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" default="wxEmptyString"/>
<arg nr="3" default="wxEmptyString"/>
<arg nr="4" default="wxITEM_NORMAL">
<not-uninit/>
</arg>
</function>
<!-- Override macros which don't necessarily require semicolons at the end -->
<define name="DECLARE_CLASS(n)" value=""/>
<define name="DECLARE_DYNAMIC_CLASS(n)" value=""/>

View File

@ -4350,12 +4350,9 @@ const Type* Scope::findType(const std::string & name) const
{
auto it = definedTypesMap.find(name);
if (definedTypesMap.end() == it)
{
if (definedTypesMap.end() == it) {
return nullptr;
}
else
{
} else {
return (*it).second;
}
}