wxwidgets.cfg: Added support for wxWindow::Close() and derived classes.

This commit is contained in:
orbitcowboy 2018-11-22 13:31:09 +01:00
parent 0af866c9ba
commit 2b9bdc52d7
2 changed files with 14 additions and 1 deletions

View File

@ -1570,6 +1570,16 @@
<leak-ignore/>
<arg nr="1"/>
</function>
<!-- https://docs.wxwidgets.org/3.1/classwx_window.html -->
<!-- bool wxWindow::Close (bool force = false ) -->
<function name="wxWindow::Close,wxBannerWindow::Close,wxControl::Close,wxGLCanvas::Close,wxHtmlHelpWindow::Close,wxMDIClientWindow::Close,wxMenuBar::Close,wxNativeWindow::Close,wxNonOwnedWindow::Close,wxPanel::Close,wxPGMultiButton::Close,wxSashWindow::Close,wxSplitterWindow::Close,wxTipWindow::Close,wxTreeListCtrl::Close,wxActiveXContainer::Close,wxActivityIndicator::Close,wxAnimationCtrl::Close,wxAnyButton::Close,wxAuiToolBar::Close,wxBookCtrlBase::Close,wxCalenderCtrl::Close,wxCheckBox::Close,wxChoice::Close,wxCollapsibleHeaderCtrl::Close,wxCollapsiblePane::Close,wxComboBox::Close,wxComboCtrl::Close,wxControlWithItems::Close,wxDataViewCtrl::Close,wxDatePickerCtrl::Close,wxFileCtrl::Close,wxGauge::Close,wxGenericDirCtrl::Close,wxHeaderCtrl::Close,wxHyperlinkCtrl::Close,wxInfoBar::Close,wxListBox::Close,wxListCtrl::Close,wxMediaCtrl::Close,wxPickerBase::Close,wxPropertyGrid::Close,wxRadioBox::Close,wxRadioButton::Close,wxRibbonControl::Close,wxRichTextCtrl::Close">
<noreturn>true</noreturn>
<leak-ignore/>
<returnValue type="bool"/>
<arg nr="1" default="false">
<not-uninit/>
</arg>
</function>
<define name="DECLARE_EVENT_TABLE()" value="wxDECLARE_EVENT_TABLE()"/>
<define name="wxDECLARE_EVENT_TABLE()" value="private: static const wxEventTableEntry sm_eventTableEntries[]; protected: const wxEventTable* GetEventTable() const; wxEventHashTable&amp; GetEventHashTable() const; static const wxEventTable sm_eventTable; static wxEventHashTable sm_eventHashTable;"/>
<define name="wxIMPLEMENT_APP(appname)" value="wxIMPLEMENT_WX_THEME_SUPPORT wxIMPLEMENT_APP_NO_THEMES(appname)"/>

View File

@ -110,17 +110,20 @@ void invalidFunctionArg(const wxString &str)
(void)str.ToLong(&l, 37);
}
void uninitvar(void)
void uninitvar(wxWindow &w)
{
wxLogLevel logLevelUninit;
char cBufUninit[10];
char *pcUninit;
bool uninitBool;
// cppcheck-suppress uninitvar
wxLogGeneric(logLevelUninit, "test");
// cppcheck-suppress uninitvar
wxLogMessage(cBufUninit);
// cppcheck-suppress uninitvar
wxLogMessage(pcUninit);
// cppcheck-suppress uninitvar
w.Close(uninitBool);
}
void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase)