wxwidgets.cfg: Improved support for some wxStaticText member functions.

This commit is contained in:
orbitcowboy 2018-11-22 13:47:17 +01:00
parent 2b9bdc52d7
commit d6c85118a7
2 changed files with 25 additions and 1 deletions

View File

@ -1571,7 +1571,7 @@
<arg nr="1"/>
</function>
<!-- https://docs.wxwidgets.org/3.1/classwx_window.html -->
<!-- bool wxWindow::Close (bool force = false ) -->
<!-- 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/>
@ -1580,6 +1580,20 @@
<not-uninit/>
</arg>
</function>
<!-- void wxStaticText::Wrap (int width ) -->
<function name="wxStaticText::Wrap">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- virtual void wxStaticText::SetLabel ( const wxString & label ) -->
<function name="wxStaticText::SetLabel">
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1"/>
</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

@ -20,6 +20,7 @@
#include <wx/memory.h>
#include <wx/frame.h>
#include <wx/menu.h>
#include <wx/stattext.h>
void validCode()
{
@ -126,6 +127,15 @@ void uninitvar(wxWindow &w)
w.Close(uninitBool);
}
void uninitvar_wxStaticText(wxStaticText &s)
{
// no warning
s.Wrap(-1);
bool uninitBool;
// cppcheck-suppress uninitvar
s.Wrap(uninitBool);
}
void uninitvar_wxString_NumberConversion(const wxString &str, const int numberBase)
{
int uninitInteger;